ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Goktepe <andrewgokt...@gmail.com>
Subject Re: How to parse a directory path?
Date Mon, 07 Nov 2005 14:54:35 GMT
Yeah, <basename> looks much better. I knew of <dirname> but hadn't come
across <basename> yet.

On 11/7/05, Dick, Brian E. <Brian.Dick@fmr.com> wrote:
>
> <basename> ?
>
> -----Original Message-----
> From: Dan Finkelstein [mailto:dan@nosimpler.com]
> Sent: Sunday, November 06, 2005 2:06 AM
> To: user@ant.apache.org
> Subject: How to parse a directory path?
>
>
> Hi --
>
> I have a number of directories on which I wish to run the same ant build
>
> file. I implemented something using <subant> and <dirlist> which
> correctly calls a common build file for each directory. The problem is
> that, when this build file is running, I need to know the name of the
> directory it is running in.
>
> For example, say, I have directories such as:
> src/localization/fr
> src/localization/de
> src/localization/es
>
> I would like a property to be set to "fr", "de" and "es", respectively,
> so that my build file can act on this.
>
> Can you suggest a solution for this?
>
> Thanks much,
> Dan
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message