This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
So I have a webapp project (lets call it A) that uses two other projects (let's call them B and C). B also depends on C. I am working in eclipse (speciifcally IBM's RAD). Right now, people are copying the jar from C into A and B and copying B into A. I can't depend that workspaces will always have all three projects, so i don't want to have project links, JARs is right. But I want to set up ant scripts so that if you had whatever combination of these projects in your workspace, as you made changes and build, JARs would be copied (if changed) into the projects that depend on them. I have an Ant build script for B and C, have added copy functions to them that are conditional, and even added a conditional copy ant script to A that does not build, but is triggered by the build.
But how can I control order? How can i make it so that if project C is modified that it will build first, andcopy into B and A and then trigger the build of B, which in turn copies, and then A gets built? And is my general approach right or is there a better practice?
And use Maven in conjunction with a CI tool such as Jenkins. Jenkins understands Maven POM files are can automatically rebuilt (and retest) modules that depends on other modules.