You'd then expect to see it rearranged like so:
Project A com blah Smith.java Jones.java zork Dylan.java Project B com blah Oconnor.java zork Miller.java Steve.java net sun Cork.java
I'm debating whether this would be easier to do in an OS-specific shell script (it would be the windows platform, unfortunately) or whether Java would let me do it in a reasonably easy and clean way.
com blah Smith.java Jones.java Oconnor.java zork Dylan.java Miller.java Steve.java net sun Cork.java
kajbj wrote:Essentially I have a code generation tool that generates java classes into a directory structure based on the package name. Then I have a Java project (with many subprojects) which uses these classes- but they're imported and stored within different directories on disk. So Tree.java might have a package of au.com.tree.Tree but it could reside in Tree Core/Java Source/ or Tree Clients/Java/ or whatever...
I'd write a script, but why do you want to do this?
kajbj wrote:The generated classes aren't designed to be modified, no. And yes, we manually copy (or manually import using the IDE) the files to our code base.
Do you modify the generated classes? Do you copy the generated classes manually to your code base?
Why not generate the classes directly into your codebase and then use your version manager to diff? (I guess you are using one?)