https://issues.apache.org/bugzilla/show_bug.cgi?id=49575

           Summary: signjar results the manifest information to be in the
                    middle of the digests.
           Product: Ant
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: [email protected]
        ReportedBy: [email protected]


When signjar is used, the manifest(/META-INF/MANIFEST.MF) seems to put the
values, specified by attribute element under section element, in the middle of
the digest values. I intended to put them in the top of the manifest file.

Below is the example of build.xml and the manifest file. The Name: Copyright is
in the middle of digest values in the manifest.

I appreciate any help.

-------build.xml-------
    <target name="jar" depends="compile" description="Make jar file">
        <jar destfile="${SC_JARFILE}">
            <fileset dir="${Output}" id="classes">
                <exclude name="tradesign/pki/compat/**" />
            </fileset>
            <manifest>
             <attribute name="Author" value="[email protected]"/>
                     <section name="Copyright">
                       <attribute name="Copy" value="(C) Trade Network Inc."/>
                        </section>
                      </manifest>
        </jar>
    </target>
    <target name="signjar" depends="jar" description="Make jar file">
               <signjar jar="${SC_JARFILE}" alias="codesigncert"
storepass="pass" keystore="CodeSignStore" />

    </target>




--------Manifest File--------
Manifest-Version: 1.0
Created-By: 1.4.2_19-b04 (Sun Microsystems Inc.)
Ant-Version: Apache Ant 1.8.1
Author: [email protected]

.......
Name: tradesign/pki/pkcs/PKCS7CertList.class
SHA1-Digest: dpr7KG6wyU4GOPY6VQIPgazHNhc=

Name: Copyright
Copy: (C) Trade Network Inc.

Name: tradesign/filters/filterTest.class
SHA1-Digest: 0QNKY8KZJGyD4nhXVVWNUonFyPM=
.......

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to