You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/08/05 20:44:12 UTC
DO NOT REPLY [Bug 30498] New: -
zipfileset prefix ignored when used with reference
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30498>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30498
zipfileset prefix ignored when used with reference
Summary: zipfileset prefix ignored when used with reference
Product: Ant
Version: 1.6.2
Platform: All
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: louis.c.hilden@wellsfargo.com
Given the following example script:
<project basedir="." default="fails" name="zipfilesetrefidbug">
<zipfileset id="test.fileset"
dir="${basedir}"
includes="test1.jar,test2.jar,test3.jar"/>
<target name="fails">
<jar destfile="test.war">
<zipfileset refid="test.fileset"
prefix="WEB-INF/lib/"/>
</jar>
</target>
<target name="works">
<jar destfile="test.war">
<zipfileset dir="${basedir}"
includes="test1.jar,test2.jar,test3.jar"
prefix="WEB-INF/lib/"/>
</jar>
</target>
</project>
If I execute the 'fails' target:
ant -f test.xml fails
unzip -l test.war
Archive: test.war
Length Date Time Name
-------- ---- ---- ----
0 08-05-04 11:31 META-INF/
106 08-05-04 11:31 META-INF/MANIFEST.MF
0 08-05-04 11:20 test1.jar
0 08-05-04 11:20 test2.jar
0 08-05-04 11:20 test3.jar
-------- -------
106 5 files
You'll notice that test?.jar does not have the prefix specified in the
zipfileset, but if I execute the 'works' target:
ant -f test.xml works
unzip -l test.war
You'll notice that test?.jar has the proper prefix specified in the zipfileset.
Archive: test.war
Length Date Time Name
-------- ---- ---- ----
0 08-05-04 11:31 META-INF/
106 08-05-04 11:31 META-INF/MANIFEST.MF
0 08-05-04 11:28 WEB-INF/
0 08-05-04 11:28 WEB-INF/lib/
0 08-05-04 11:20 WEB-INF/lib/test1.jar
0 08-05-04 11:20 WEB-INF/lib/test2.jar
0 08-05-04 11:20 WEB-INF/lib/test3.jar
-------- -------
106 7 files
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org