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

Instead of updating a jar file, the task overrides it.

           Summary: Instead of updating a jar file, the task overrides it.
           Product: Ant
           Version: 1.5.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Below is the build file:

<?xml version="1.0"?>

<project name="Test updating jar files" basedir="." default="jar.test">

    <!-- This target jars up *.class files in current directory into test.jar 
-->
    <target name="jar.test">
        <jar destfile="test.jar" basedir="."
             includes="*.class"
        />
        <!-- Update JAR manifest to include dependency libraries -->
        <jar destfile="test.jar" update="true">
            <manifest>
               <attribute name="Class-Path" value="Some jar files"/>
            </manifest>
        </jar>
    </target>

</project>

I tested this build file with both 1.5.1 and 1.5.2.  1.5.1 worked perfect, the
test.jar contains the class files along with the manifest file.  However, when
built with 1.5.2, the test.jar contains only the manifest file.  It seems the
second task overrides the file even though the attribute "update" is set to 
true.

Reply via email to