You could set the basedir property: ant -f a/b/thebuild.xml -Dbasedir=<pathToTheDir>
On a unix shell you could use: ant -f a/b/thebuild.xml -Dbasedir=$(pwd) The system indipendent way would of course be placing an antfile in the top dir that calls a/b/thebuild.xml using the ant task. This is what David Brown pointed out. Best regards, Martin > > However, this has the side effect of changing my basedir to a/b/ as > well, which I don't want, > I just want to run ant in my current directory with the build file of > a different directory. Any > thoughts? > > Thanks, > > Francisco > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
