ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Halstead, Chris" <Chris.Halst...@delta.com>
Subject RE: Renaming a directory when the source directory is not known
Date Mon, 14 Apr 2003 22:00:40 GMT
I tried  <mapper type="glob" from="${output.dir}/*" to="${output.dir}/${target}"/>, where
${target} is the name I want it to have.  This did nothing...does mapper only work with files?

-chris


-----Original Message-----
From: Sebastien Blanc [mailto:Sebastien.Blanc@alcatel.com]
Sent: Monday, April 14, 2003 5:52 PM
To: Ant Users List
Subject: Re: Renaming a directory when the source directory is not known


did u try using a <mapper> (type="glob" or so) instead of move ?
seb.

"Halstead, Chris" wrote:

> OK, this has been driving me nuts.  I'm trying to figure out how to rename a directory
when the original directory name is not known beforehand (or is variable), such as when unpacking
an archive with an arbitrary base directory.
>
> e.g.:
>
> I unpack a ZIP archive to /some/dir and end up with /some/dir/foo/...
>
> I want to rename /some/dir/foo to /some/dir/bar, but I don't want to hard code a reference
to /some/dir/foo 'cuz it may change.
>
> Anyone have a clue?  I'm stumped.
>
> Thanks in advance.
>
> -chris
>
> ---------------------------------------------------------------------
> 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
View raw message