On 11 Sep 2002, Stefan Bodewig wrote:

> Date: 11 Sep 2002 09:58:54 +0200
> From: Stefan Bodewig <[EMAIL PROTECTED]>
> Reply-To: Tomcat Developers List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: cvs commit: jakarta-tomcat-catalina/catalina build.xml
>
> On 11 Sep 2002, <[EMAIL PROTECTED]> wrote:
>
> >   +  <property name="catalina.home"     value="${basedir}/.."/>
>
> As I've seen this explicit reference to basedir quite often.  You
> could also use
>
>         <property name="catalina.home" location=".." />
>
> which is a more "Anty" way to do the same.  Well, not quite,
> ${catalina.home} will be an absolute path instead of the absolute path
> of basedir with the String "/.." appended.
>
> Requires Ant 1.2 or better, so it should probably be save.
>

I've been bit using relative references like this, especially in cases
where you've got calls to build.xml scripts in nested directories -- the
problem is that relative paths are evaluated differently depending on
where you invoke Ant from.  Using ${basedir} solves that nicely.

> Stefan
>

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to