I have inherited an existing Ant build script. It launches javacthree different source directories three times : shared, client, and server. Then it creates two JAR files: client.jar (shared + client) and server.jar (shared + server).
When I translated this to Eclipse, I ended up creating three projects with corresponding dependencies. This works, but I am not a fan of the explosion of the Eclipse project (it was a simple case: I have about a dozen such Ant scripts, and some in 6 or 7 Eclipse projects).
My question is: is there a better way?
I should also mention that I do not want to just create one Eclipse project with three source directories. This is not the way Ant compiles code, and it makes it difficult to find cases where people used classes from an inaccessible source tree (using server classes from client code). (I also have classes with the same name in the client and on the server, so I canβt actually just dump the entire source together.)
source
share