Lev Zak wrote: > When I run "ant" under d:\dir_1 , I receive the following: > > init: > [echo] > basedir = D:\dir_1 > configDir = D:\dir_1/config > <snip> > When I run "ant release" under d:\dir_1 , I receive the following: > > release: > > init: > [echo] > basedir = D:\dir_2 > configDir = D:\dir_1/config
Try running "ant -verbose release" and I think you'll see what's happening. Once a property is declared, subsequent declarations are ignored. So "configDir" is set in D:\dir_1\build.xml and isn't redefined. The "basedir", I believe, is a special case because *every* buildfile has a "basedir" (whether or not it is explicitly defined). Anyway, the simplest fix is probably to move your "configDir" definition into the "init" target. You're already bypassing the init target when calling release (because there's no "depends='init'" attribute for "release"). Try that and see if it works. I'm still pretty new to Ant, so I could be wrong. -Steve -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
