https://issues.apache.org/bugzilla/show_bug.cgi?id=49090
Summary: Possible <jar> filesetmanifest="merge" regression
1.8.0
Product: Ant
Version: 1.8.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: [email protected]
ReportedBy: [email protected]
In 1.7.1, given a src/META-INF/MANIFEST.MF of:
Build-Date: 2010-04-12T11:32:38+1000
and
<project default="jar">
<target name="jar">
<delete file="my.jar" />
<jar destfile="my.jar" filesetmanifest="merge">
<fileset dir="src" />
</jar>
</target>
</project>
The resulting JAR will contain (merged):
jar:
[delete] Deleting: C:\workspace\testjartask\my.jar
[jar] Building jar: C:\workspace\testjartask\my.jar
[jar] Building jar: C:\workspace\testjartask\my.jar
BUILD SUCCESSFUL
Total time: 1 second
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.)
Build-Date: 2010-04-12T11:32:38+1000
On 1.8.0, the Build-Date is missing for the same build:
jar:
[delete] Deleting: C:\workspace\testjartask\my.jar
[jar] Building jar: C:\workspace\testjartask\my.jar
BUILD SUCCESSFUL
Total time: 1 second
and the resulting JAR contains:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.0
Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.)
Note that in the run on 1.8.0, the [jar] task only reports as running once,
whereas is reports as running a double-pass on 1.7.1. This resonates with some
changes in the code around double-pass processing, but I can't point at the
exact problem yet (and probably won't have the time to work on that either -
have dropped back to 1.7.1 for this build).
Sample project attached.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.