ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Genter" <>
Subject RE: Working directory confusion
Date Tue, 01 Feb 2005 17:09:53 GMT
My overall issue is that I'm trying to build an ant script that will run
a number of unit tests after it builds my product. Each test is in its
own test subdirectory; what I *really* wanted to do was use <subant>
using the genericantfile attribute to specify the build file, but
running each test in its own directory sharing a common set of
properties. That failed pretty miserably, though.

Rick Genter
Principal Engineer
Silverlink Communications
(781) 272-3080 x242

-----Original Message-----
From: Dominique Devienne [] 
Sent: Tuesday, February 01, 2005 12:07 PM
To: Ant Users List
Subject: RE: Working directory confusion

> From: Rick Genter []
> I'm getting confused on how the notion of "current working directory"
> maintained in ant. Here's my test script:

Yeah, I'm always been confused by it too ;-)

> 		<echo>Calling sub1-test via &lt;ant&gt; task:</echo>
> 		<ant dir="sub1" antfile="test.xml" target="sub1-test"/>

I stay away from the dir attribute, and things usually work better.

Check out the table at the bottom of the Manual page for <ant>, which
tells you what basedir the sub-build will get if you use @dir or not.

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

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

View raw message