http://nagoya.apache.org/bugzilla/show_bug.cgi?id=564
*** shadow/564 Fri Feb 9 08:34:16 2001
--- shadow/564.tmp.19754 Fri Feb 9 08:34:16 2001
***************
*** 0 ****
--- 1,69 ----
+ +============================================================================+
+ | Ant hangs with task zip with compression + performance |
+ +----------------------------------------------------------------------------+
+ | Bug #: 564 Product: Ant |
+ | Status: NEW Version: 1.3 Beta 1 |
+ | Resolution: Platform: PC |
+ | Severity: Normal OS/Version: |
+ | Priority: Component: Core tasks |
+ +----------------------------------------------------------------------------+
+ | Assigned To: [EMAIL PROTECTED] |
+ | Reported By: [EMAIL PROTECTED] |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ Task zip hangs on my win2000 sp1 machine with jdk1.3 & hotspot2 (don't know
+ about other configurations). Works if compression is set to false. This
problem
+ does not appear on ant 1.2.
+
+ BTW performance doing the task (without compression) is 1 second with ant 1.2
+ and 3(!) second with ant 1.3b1 .
+
+ Here is the build file:
+
+ <?xml version="1.0"?>
+
+ <!-- =======================================================================
-->
+ <!-- EJBUtils distribution zip build
+ file -->
+ <!-- =======================================================================
-->
+
+ <project name="EJBUtils distribution zip" default="main" basedir="..">
+ <patternset id="dist">
+ <include name="src/**/*" />
+ <include name="javadoc/**/*" />
+ <include name="lib/**/*" />
+ <include name="*" />
+ </patternset>
+
+ <target name="init">
+ <tstamp/>
+ <property name="file" value="ejbutils" />
+
+ <delete file="lib/${file}.jar" />
+ <delete file="${file}.zip" />
+ <delete file="${file}.tar" />
+ <delete file="${file}.tar.gz" />
+ </target>
+
+ <target name="main" depends="init">
+ <jar jarfile="lib/${file}.jar" manifest="etc/manifest">
+ <fileset dir="classes"
+ excludes="**/*.dependency"
+ />
+ </jar>
+ <zip zipfile="${file}.zip">
+ <fileset dir="." >
+ <patternset refid="dist"/>
+ </fileset>
+ </zip>
+ <tar tarfile="${file}.tar" basedir=".">
+ <patternset refid="dist"/>
+ </tar>
+ <gzip src="${file}.tar" zipfile="${file}.tar.gz"/>
+ <delete file="${file}.tar" />
+ </target>
+
+ </project>