I'm using javac mypackage/*.java but I want it to also include .java files that are in folders that are in the mypackage folder, and folders within those folders, etc.
How can I do this?
I'm using javac mypackage/*.java but I want it to also include .java files that are in folders that are in the mypackage folder, and folders within those folders, etc.
How can I do this?
On a Unix-like OS, find ./mypackage -name '*.java' | xargs javac should sort you.
You may also create an ant or maven script to accomplish the same thing. These scripts will provide you a more manageable way to build and deploy the project. For details on ant see: http://ant.apache.org/ for ant and http://maven.apache.org/guides/ for maven scripts.
Hope this helps.