ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: <ant> task does not run the build.xml with new basedir correctly
Date Wed, 06 Feb 2002 21:20:41 GMT
--- Lev Zak <> wrote:
> When I run "ant release" under d:\dir_1 , I receive the following:
>                 basedir    = D:\dir_2
>                 configDir  = D:\dir_1/config
> I expect to receive the following:
> because a "basedir" changed to "d:\dir_2" 
> What I missed?

Once you've set configDir in proj1, the property will stay at that value
unless you either override it with a nested <property> in your <ant> task
(ie., <property name="configDir" value="${releasedir}/config"/>), or set
'inheritAll="no"' and set the property in your proj2 buildfile. Which way
you choose to do it depends on what you intend for your proj2, whether you
expect to run it independent of proj1, and if any targets you intend to
run directly from it reference ${configDir}.



Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!

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

View raw message