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 24702] New: - Jar task update creates duplicate Class-Path
Date Fri, 14 Nov 2003 10:11:27 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=24702>.
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=24702

Jar task update creates duplicate Class-Path

           Summary: Jar task update creates duplicate Class-Path
           Product: Ant
           Version: 1.5.4
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: Kristian.Wiglasz@seznam.cz


I use the following files:
build.xml
<project default="build">
<target name="build">
  <touch file="dummy.txt"/>
  <jar jarfile="test.jar" manifest="manifest.mf" update="yes">
    <fileset dir="${basedir}" includes="dummy.txt"/>
  </jar>
</target>
</project>

manifest.mf
Class-Path: xxx.jar

dummy.txt
can be any file

when i run first time the script new test.jar is created and manifest is 
correct.
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.4
Created-By: 1.4.2_02-b03 (Sun Microsystems Inc.)
Class-Path: xxx.jar

when i run it again (without deleting the test.jar) the manifest is changed to:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.4
Created-By: 1.4.2_02-b03 (Sun Microsystems Inc.)
Class-Path: xxx.jar
Class-Path: xxx.jar
Class-Path: xxx.jar

in my opinion the Class-Path should not be duplicated and the update 
functionality is buggy. I also tested it on Windows 2000, ant 1.5.3, sun-jdk 
1.4.2-b28 and the result is the same.

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


Mime
View raw message