This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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?