Currently, someone using NetBeans and Git Submodules cannot use this project as a dependancy.
The problem was:
When using this repertory as a submodule, NetBeans wouldn't allow to import the source files because it didn't understand where they were
Solution:
I added a nbproject directory with the needed configuration files.
Now, when this project is a git submodule, you can add the source files as a library in NetBeans (Library/add project/browse to the src folder)
Pros:
The only two files added (plus the .gitignore file) are configuration file, and will never need to be modified (no pollution of the repo)
Every other NetBeans file/folder is ignored by the .gitignore (no pollution of the repo)
Cons:
The solution only allows the original source files to be loaded, the tests and performance tests are excluded (but this is enough for submodules, as nobody with bother testing dependancy; it doesn't change anything for the contributors of the project anyway)
Currently, someone using NetBeans and Git Submodules cannot use this project as a dependancy.
The problem was:
Solution:
Pros:
Cons: