ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Toens" <>
Subject RE: calling another build file, changing directory
Date Mon, 23 Feb 2004 19:34:48 GMT
Hi Mark,

If you set the "dir" attr on <ant>, then Ant will set the basedir correctly for the
file it is calling into. As far as I know, setting basedir to "." doesn't do anything useful,
since you want basedir to be the directory the ant file lives in, not the directory you are
executing "ant" from.


-----Original Message-----
From: Mark Lybarger []
Sent: Monday, February 23, 2004 11:06 AM
To: Ant Users List (E-mail)
Subject: calling another build file, changing directory

i have two ant scripts, one which calls the other.  the problem is that in build.test.xml,
it's using a property of basedir = ".".  this doesn't work out so nicely if the user isn't
"in" the folder the build.test.xml is in.  is there a way to cd into a folder or somesuch
with the ant call?


  <target name="test" description="run cactus tests">
    <ant antfile="${test.file.path}" target="${}">
      <property name="buildProps" value="${}" />
      <property file="" />


Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message