ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Halstead, Chris" <Chris.Halst...@delta.com>
Subject Renaming a directory when the source directory is not known
Date Mon, 14 Apr 2003 21:47:04 GMT
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

Mime
View raw message