You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2012/11/19 22:19:21 UTC
[Bug 54171] New: filesetmanifest="mergewithoutmain" only works
when provided
https://issues.apache.org/bugzilla/show_bug.cgi?id=54171
Bug ID: 54171
Summary: <jar> filesetmanifest="mergewithoutmain" only works
when <manifest> provided
Product: Ant
Version: 1.8.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
Assignee: notifications@ant.apache.org
Reporter: ejona@google.com
Classification: Unclassified
Similar to bug 29731, except that the broken behavior only exposes itself when
<manifest> is not provided within a <jar> task.
jar1.jar's manifest:
Manifest-Jar1: This is the MAIN part of jar1's Manifest
Name: jar1
SomeProperty: Property of Jar1
jar2.jar's manifest:
Manifest-Jar2: This is the MAIN part of jar2's Manifest
Name: jar2
SomeProperty: Property of Jar2
build.xml:
<project name="test" default="build" basedir=".">
<target name="build">
<jar destfile="broken.jar" filesetmanifest="mergewithoutmain">
<zipgroupfileset dir=".">
<include name="jar1.jar"/>
<include name="jar2.jar"/>
</zipgroupfileset>
</jar>
<jar destfile="working.jar" filesetmanifest="mergewithoutmain">
<manifest/>
<zipgroupfileset dir=".">
<include name="jar1.jar"/>
<include name="jar2.jar"/>
</zipgroupfileset>
</jar>
</target>
</project>
Working.jar will have the expected manifest, since there was a <manifest>
section in the <jar> task. Broken.jar will behave as if filesetmanifest="merge"
and include main elements from jar1 and jar2
Obvious work-around to issue is to provide an empty <manifest/> section.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 54171] filesetmanifest="mergewithoutmain" only works when
provided
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54171
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |1.9.4
--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
fixed with svn revision 1555355
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 54171] filesetmanifest="mergewithoutmain" only works when
provided
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54171
Eric Anderson <ej...@google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ejona@google.com
--
You are receiving this mail because:
You are the assignee for the bug.