简体   繁体   中英

Netbeans java files as a project

I downloaded the source files (contained in folders) for javadoc and doclet (some folders like com/sun/tools/doclets/... with some .java source files in them) and I would like to load it into Netbeans as a project (all the .java files that are somewhere starting in the com directory), so that I am able to work with it easily.

Are there any ways, how to make it (there is quite lots of them, so I do not want to start new project and add them manually one by one)?

The easiest thing I can think of is to add a pom.xml to javadoc project, then open/import the project into netbeans.

I am going to make some assumptions here as I don't know the exact directory layout.

Assuming the code is checked out into javadoc/src/com/sun/...

  • create a new file called pom.xml in the javadoc directory.
  • The pom would look something like the following -> http://pastebin.com/i5hshAF3

只需创建一个项目并找出它的保存位置,然后添加所有.java文件,它将加载到netbeans中

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM