Reputation: 13998
Is there a way to build a project into a namespace, say "org.example.this.particular.library" without actually creating that directory structure in the source tree? In other words, I want to put my files in "[project]/src/" rather than "[project]/org/example/this/particular/library/".
EDIT: The library contains multiple files, so the compiler needs to know where to look to resolve other package classes.
Upvotes: 1
Views: 248
Reputation: 533442
You can if you compile this file explicitly or use the Compiler API to compile your files.
Either way it if far more complicated than just using those directories.
If you use an IDE and a build tool you don't really need to care what the directories are.
Upvotes: 1