ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Blanc <Sebastien.Bl...@alcatel.com>
Subject Re: Renaming a directory when the source directory is not known
Date Mon, 14 Apr 2003 21:52:03 GMT
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


Mime
View raw message