I'm quite happy to rig up a bash script to do this, but it would nice to have an automated tool to sort java files into the correct directories (after creating them).
Thanks!
I'm quite happy to rig up a bash script to do this, but it would nice to have an automated tool to sort java files into the correct directories (after creating them).
Thanks!
Can I ask what you mean by "sort java files into the correct directories (after creating them)" ? In Java if package structure and directory structure or not same, it wont allow you to compile.
In effect, if you want to organize classes, you use Eclipse IDE (or any other IDE for that matter) select a bunch of classes and say "Move" specificy the package names and it will automatically move them to the appropriate packages (and physical directories)
Eclipse should tell you when a file is not in the appropriate package. You can then use the quick fix option of the problem view to move the files in the right directory.