ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33779] New: - <jar> NPEs when merging a manifest, when there is no file to merge into
Date Mon, 28 Feb 2005 23:16:21 GMT
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


Mime
View raw message