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 2004/11/11 17:35:14 UTC

DO NOT REPLY [Bug 32187] New: - Error in package versionning when generate manifest in task.

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=32187>.
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=32187

Error in package versionning when generate manifest in <jar> task.

           Summary: Error in package versionning when generate manifest in
                    <jar> task.
           Product: Ant
           Version: 1.6.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: ramele@visa.com.ar


JDK 1_4_1_02/JDK 1_4_2_06

Using:

      <jar manifestencoding="ISO-8885-1"  
jarfile="${deploy.dir}/lib/common.jar" basedir="${build.dir}/">
         <manifest>
            <attribute name="Built-By" value="${user.name}"/>
            <section name="ar/com/common">
               <attribute name="Sealed" value="false"/>
               <attribute name="Specification-Title" value="SNA HostDG 
Specification"/>
               <attribute name="Specification-Version" value="${version}"/>
               <attribute name="Specification-Vendor" value="Argentina"/>
               <attribute name="Implementation-Title" value="ar.com.common"/>
               <attribute name="Implementation-Version" value="${version} 
${TODAY}"/>
               <attribute name="Implementation-Vendor" value="Common SNA"/>
            </section>
</manifest>
</jar>

Generate a jar file with a MANIFEST file that contains a blank line before the 
first section (after the Build-By property).  Using this blank line doesn't 
allow to properly package identification: package.getImplementationVendor() and 
related methods all return nulls.  The bug is fixed if the blank line is 
removed.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org