You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Michael Leo <ml...@cariboulake.com> on 2001/08/09 17:14:49 UTC
zip file dir prefix problem
Gang,
I know this seems silly, but I need to create a zip file that
unzips into "./", not "". I am using a directive like this:
<zip zipfile="proj.zip" basedir="/project/yyz/staging"/>
In other words, I need the unzip to look like this:
bero% unzip -l proj.zip
Archive: proj.zip
Length Date Time Name
------ ---- ---- ----
12548 03-23-01 17:59 ./docs/arch.html
9015 03-23-01 23:17 ./docs/authentication.html
14126 03-23-01 23:10 ./docs/client.html
------ -------
35689 3 files
bero%
instead of this:
bero% unzip -l proj.zip
Archive: proj.zip
Length Date Time Name
------ ---- ---- ----
12548 03-23-01 17:59 docs/arch.html
9015 03-23-01 23:17 docs/authentication.html
14126 03-23-01 23:10 docs/client.html
------ -------
35689 3 files
bero%
Any ideas?
Thanks!
Michael Leo mleo@cariboulake.com Java, Oracle
Caribou Lake Software http://www.cariboulake.com Ingres, JDBC
JSockets/JMobility: Tunnelling sockets over HTTP - REALLY!
Re: zip file dir prefix problem
Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 09 Aug 2001, Michael Leo <ml...@cariboulake.com> wrote:
> I know this seems silly,
it does 8-)
> but I need to create a zip file that unzips into "./", not "". I am
> using a directive like this:
>
> <zip zipfile="proj.zip" basedir="/project/yyz/staging"/>
<zip zipfile="proj.zip">
<zipfileset dir="/project/yyz/staging" prefix="./" />
</zip>
Stefan