You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/07/09 02:14:22 UTC

DO NOT REPLY [Bug 49575] New: signjar results the manifest information to be in the middle of the digests.

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: notifications@ant.apache.org
        ReportedBy: totaljj@gmail.com


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="example@ex.com"/>
                     <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: example@ex.com

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

DO NOT REPLY [Bug 49575] signjar results the manifest information to be in the middle of the digests.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49575

Jesse Glick <jg...@netbeans.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jglick@netbeans.org
         Resolution|                            |INVALID

--- Comment #1 from Jesse Glick <jg...@netbeans.org> 2010-07-08 20:38:52 EDT ---
<section name="Copyright"> is wrong, unless the JAR actually contains a file at
top level named "Copyright" which I doubt. Most likely you just wanted a
top-level

<attribute name="Copyright" value="(C) Trade Network Inc."/>

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