'inheritAll="no"' - it is exactly what I need. Thanks. Lev. > -----Original Message----- > From: Diane Holt [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 06, 2002 11:21 PM > To: Ant Users List > Cc: Mike Dubman > Subject: Re: <ant> task does not run the build.xml with new > basedir correctly > > > --- Lev Zak <[EMAIL PROTECTED]> wrote: > > When I run "ant release" under d:\dir_1 , I receive the following: > [snip] > > basedir = D:\dir_2 > > configDir = D:\dir_1/config > [snip] > > I expect to receive the following: > > > [snip] > > 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}. > > Diane > > > ===== > ([EMAIL PROTECTED]) > > > > __________________________________________________ > Do You Yahoo!? > Send FREE Valentine eCards with Yahoo! Greetings! > http://greetings.yahoo.com > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> >
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>