I think it is the same effect. If you do that, then if execute in parent directory, the child does know the parent. However, I dont think you can do it in the child directory.
----- Original Message ----- From: "Simon Toens" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 26, 2004 8:35 PM Subject: RE: generate exact path? In parent.xml, could you do <property name="parentdir" location="${basedir}"/> and then pass parentdir along when you call child.xml? -----Original Message----- From: Baz ĪŅŠ° [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 2:39 PM To: [EMAIL PROTECTED] Subject: Re: generate exact path? All, Thanks for the replies. Let me try again. When you execute parent/build.xml, lets say the pwd is "/home/code/src/server" but when you execute child/build.xml, the pwd becomes "/home/code/src/server/child". How can I pass the exact unchanged path /home/code/src/server into child/build.xml? Thanks Barry --- In [EMAIL PROTECTED], Matt Benson <[EMAIL PROTECTED]> wrote: > --- Dominique Devienne <[EMAIL PROTECTED]> wrote: > > > From: Matt Benson [mailto:[EMAIL PROTECTED] > > > > > > --- [EMAIL PROTECTED] wrote: > > > > <property location=""/> > > > > > > > Wouldn't that return the same as "${basedir}" ? > > > Depending on what's desired... PWD would > > technically > > > be "${user.dir}"; at least, that works for me. > > > > The Java VM put the current working directory in the > > 'user.dir' Java System > > property, which you can access as an Ant property > > (${user.dir}). > > > > <property name="pwd" location="." /> equals > > ${basedir}, which is not the > > same. --DD > > > That's what I said! :) basedir != PWD > > -Matt > > __________________________________ > Do you Yahoo!? > Get better spam protection with Yahoo! Mail. > http://antispam.yahoo.com/tools > > ------------------------------------------------------------------- -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]