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 2005/03/01 00:16:21 UTC
DO NOT REPLY [Bug 33779] New: -
NPEs when merging a manifest, when there is no file to merge into
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=33779>.
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=33779
Summary: <jar> NPEs when merging a manifest, when there is no
file to merge into
Product: Ant
Version: 1.7Alpha (nightly)
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: stevel@apache.org
This snippet toasts the JVM:-
<jar destfile="${target.jar}"
index="true"
filesetmanifest="merge">
<fileset dir="${build.dir}/classes"/>
<metainf dir="src/META-INF/"/>
<manifest >
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Sealed" value="true"/>
<attribute name="Built-On" value="${timestamp.isoformat}"/>
<attribute name="Main-Class" value="${main.class}"/>
</manifest>
</jar>
Same if the <manifest> element is missing.
java.lang.NullPointerException
at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:556)
at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:385)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org