The scenario I’m describing is done using ‘complicated’ build scripts and I want to find a way to do the same thing in Eclipse as cleanly as possible: I have a library of Java code which I am building and testing. Portions of the compiled code are then packaged into individual jars which are then used by subprojects. The subprojects are distributed as their own entities. For example, I may have a server package which contains a server.jar and I may have a client package which contains a client.jar.
I want to be able to build and test API changes in the main project which I am successfully doing by generating Java class files. But then I want to be able to build, test and deploy my subprojects using JARs compiled and built from the sources (either in development or from version control) instead of using the compiled classes…
Essentially I’m looking for ideas on how best to setup a workspace so that I have a main project with Java sources and then subprojects that use packaged jars from the main project. I’m using CVS and I’m fairly comfortable with Ant if Eclipse provides no way of accomplishing what I’m trying to do…
Ideally I’d like to have two different configurations for the subprojects, one where development/testing of the subprojects uses the latest and greatest (not checked in) sources from the main project and another configuration where testing and deployment uses the checked in sources from the main project….
Any ideas?