https://bz.apache.org/bugzilla/show_bug.cgi?id=60019
Bug ID: 60019
Summary: Jar task fails to merge classpaths
Product: Ant
Version: 1.9.4
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
Assignee: [email protected]
Reporter: [email protected]
Created attachment 34161
--> https://bz.apache.org/bugzilla/attachment.cgi?id=34161&action=edit
Trivial test case.
In our builds, we use Ant to merge several Jar files and need to keep the
Classpaths set in the Manifest file. However, after upgrading to Ant 1.9.7,
the classpaths are lost when merging the Jar files. Testing backwards we found
that it works correctly in 1.9.3 and previous versions, but not in 1.9.4.
I've built a trivial test case (attached). Unzip the testcase and enter the
resulting directory. Run "ant" and then check the Combined.jar's resulting
manifest file.
Our Ant build.xml file (included in the test case) is:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created to demostrate a bug in Ant -->
<project name="TagServer" default="default" basedir=".">
<target name="default">
<jar jarfile="Combined.jar" filesetmanifest="mergewithoutmain"
mergeclasspathattributes="true">
<zipfileset src="First.jar"/>
<zipfileset src="Second.jar" />
</jar>
</target>
</project>
First.jar and Second.jar are trivial, empty jar files that contain only a
Manifest with Classpath set.
We expected the resulting Combined.jar file to contain a merged classpath and
it does using versions of Ant < 1.9.4, but it contains a manifest with a
classpath setting in newer versions of Ant.
We suspect that Bug-54171 introduced this problem, but we're not sure.
https://bz.apache.org/bugzilla/show_bug.cgi?id=54171
--
You are receiving this mail because:
You are the assignee for the bug.