Starting with the following file structure:
doc/
lib/
src/%java-like structure%
test/%java-like structure%
build.xml
I want to create a new Netbeans project (inside this structure), using the existing
- build file
- sources
- libraries
- other files
With the Netbeans guide to create a project from existing source I manage to import sources and test files, but then there are problems:
- You have to choose a name for a build file, when trying it with the existing build file Netbeans blocks
- After creating the project, Netbeans doesn't find the library packages in
.lib/
whether entering the folder under Properties/Libraries or not.
As asked here, I want to create the project from a git repository, but the suggested solution doesn't work for me (git does not want to clone into a non-empty directory...) and I doubt this would help with the library problem etc.
EDIT 1
Somehow it works to create a new Netbeans project, then add libraries to it and import the packages of the libraries. But this doesn't work when creating a project from existing sources (then Netbeans doesn't find the packages)!
EDIT 2
It seems to be even more complicated: It also doesn't work when I create a new project, change the source folder to the directory where the sources are (from which I want to make a project of) and add the libraries. But using the libraries in a new project with new source works.