Linking Ant build files

michaelmexico

New Member
I have a client and a server that I'm building with Ant. The client relies on the server being built first before it can build. I have all of the required libraries except the server ear file bundled in the client.I created 3 ant files build.xml, build-client.xml, and build-server.xml. (Click on any of the file names to see them) The files build-client.xml and build-server.xml are included in build.xml so that it can run targets from them.The problem I'm having is that the basedir variable changes from build file to build file. So if I run targets in build-client.xml from build.xml the basedir variable is relative to build.xml.How do I change the basedir variable multiple times within an Ant script?Also, looking at these build files, do you see a better way of doing what I'm trying to do? Right now I'm thinking that I have to have both the client war and server ear in the same location before I can make the final bundled ear. My idea about this may be flawed though because these scripts seem unnecessarily complex.
 
Back
Top