DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21170>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21170

create jar may generate dumplicate (illegal) manifet entries





------- Additional Comments From [EMAIL PROTECTED]  2003-06-30 10:21 -------
to clarify:
update set to true should mean: <jar update="true" ... > 

in my case the following target shows the error:
  <target name="jar" depends="init">
        <jar jarfile="${jar}" update="true">
                <fileset refid="relevant" />
                <fileset refid="jarInclude" />
                <manifest>
                <!--<attribute name="Manifest-Version" value="1.2" />-->
                <attribute name="Built-By" value="[EMAIL PROTECTED]" />
                        <attribute name="Main-Class" value="systemProperties" />
                        <attribute name="Class-Path" value="bcrypt_lt.jar 
jakarta-oro.jar" />
                        <attribute name="Sealed" value="false" />
                </manifest>
        </jar>
  </target>




if I call this target several times with changes in some files in the fileset,

reading the manifest thru the ZipFile class I get:
-----------------------------------------------------
dumping /home/heinz/java/dist/lib/util.jar
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3 
Created-By: 1.4.2-b28 (Sun Microsystems Inc.)
Built-By: [EMAIL PROTECTED]
Main-Class: systemProperties
Class-Path: bcrypt_lt.jar jakarta-oro.jar
Class-Path: bcrypt_lt.jar jakarta-oro.jar
Class-Path: bcrypt_lt.jar jakarta-oro.jar
Class-Path: bcrypt_lt.jar jakarta-oro.jar
Class-Path: bcrypt_lt.jar jakarta-oro.jar
Class-Path: bcrypt_lt.jar jakarta-oro.jar util.jar
Class-Path: bcrypt_lt.jar jakarta-oro.jar util.jar
Class-Path: bcrypt_lt.jar jakarta-oro.jar
Class-Path: bcrypt_lt.jar jakarta-oro.jar
Sealed: false
------------------------------------------------------

Since java version j2sdk1.4.2 java reports warnings due to this
multiple entries,
< 1.4.2 does not show warnings - therefore it can easily been overseen.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to