ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21170] - create jar may generate dumplicate (illegal) manifet entries
Date Mon, 30 Jun 2003 10:21:34 GMT
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 heinz@chanet.de  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="heinz.doerr@chanet.de" />
   			<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: heinz.doerr@chanet.de
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message