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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to