ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Genter" <rgen...@silverlink.com>
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
<mailto:rgenter@silverlink.com>
(781) 272-3080 x242




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

> From: Rick Genter [mailto:rgenter@silverlink.com]
> 
> I'm getting confused on how the notion of "current working directory"
is
> 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.
--DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message