ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Baz ¤Ñª° <sky_f...@yahoo.com>
Subject Re: generate exact path?
Date Thu, 26 Feb 2004 22:39:19 GMT
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 apache-ant@yahoogroups.com, Matt Benson <gudnabrsam@y...> 
wrote:
> --- Dominique Devienne <DDevienne@l...> wrote:
> > > From: Matt Benson [mailto:gudnabrsam@y...]
> > > 
> > > --- Jan.Materne@r... 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: user-unsubscribe@a...
> For additional commands, e-mail: user-help@a...


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


Mime
View raw message