Use java source dirs from ant build.xml to configure Netbeans project

I have an existing java project with ant build.xml and I'm trying to use Netbeans as my IDE.

In Netbeans, I created a new free java form project and pointed it to my ant file. This works great for creating, running, etc. However, code completion does not work unless I manually add all the java sources for my project (which are already defined in my own build.xml!) Through the Netbeans project properties tab "Java Sources", This is very tedius because this project has many sources.

Is there a way to get Netbeans to recognize the original dirs that are already defined in my ant build.xml in order to get functionality like autocomplete work?

+5
source share
1 answer

Netbeans stores project information in the project.xml file so as not to modify the build.xml file.

You can set code completion for your case. For this:

- right-click on your project and select "Properties

- click "Panel" Path to the source Java class "in the" Categories "panel

- check the box "Separate class path for each folder of the source package"

If you want to add a new source folder, select "Java Source in" in the "Categories" section, and then click the "Add Folder ...

0
source

All Articles