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 2008/08/23 16:35:43 UTC
DO NOT REPLY [Bug 45680] New: Error msg Jar : Updating jar since
cannot read current jar manifest:
https://issues.apache.org/bugzilla/show_bug.cgi?id=45680
Summary: Error msg Jar : Updating jar since cannot read current
jar manifest:
Product: Ant
Version: 1.5
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: major
Priority: P4
Component: Core tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: srihari2009@gmail.com
Hi,
I am using ant, Solaris 5.8 and JDK 1.6.04.
I am using ant 1.5 version for build.
Following error is displayed in the build process:
[jar] Updating jar since cannot read current jar manifest:
java.util.zip.ZipExceptionerror in opening zip file
After this message ,it continues normally build is successful.
This is error is displayed in clean build only.
i.e Above message is displayed when there is no jar file.
Is it trying to open a jar manifest,when the file does not exist at all?
The above task mentioned is supposed to create a jar and default manifest but
it is trying to open before creating the jar.
pl suggest a solution to avoid the message.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45680] Error msg Jar : Updating jar since cannot
read current jar manifest:
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45680
srihari <sr...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |srihari2009@gmail.com
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45680] Error msg Jar : Updating jar since cannot
read current jar manifest:
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45680
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |1.7.1
--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2008-08-25 01:36:40 PST ---
Ant 1.5 is not exactly fresh ...
a clean build means there is no target jar at all, right?
OK, with the following build file and Ant 1.7.1
<project>
<jar destfile="test" basedir="." includes="*.xml" update="true"/>
</project>
the output is
$ ant -f /tmp/j.xml
Buildfile: /tmp/j.xml
[jar] Building jar: /tmp/test
BUILD SUCCESSFUL
Total time: 6 seconds
and after touching j.xml
$ ant -f /tmp/j.xml
Buildfile: /tmp/j.xml
[jar] Updating jar: /tmp/test
BUILD SUCCESSFUL
Total time: 2 seconds
so there is no warning in Ant 1.7.1 and I'm too lazy to find the exact version
of Ant where the bug has been fixed.
The workaround is to upgrade to a more recent version of Ant.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.