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 10755] New: - Ant 1.5's jar task fails to add new files when run multiple times
Date Fri, 12 Jul 2002 19:38:07 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=10755>.
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=10755

Ant 1.5's jar task fails to add new files when run multiple times

           Summary: Ant 1.5's jar task fails to add new files when run
                    multiple times
           Product: Ant
           Version: 1.5
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: Sven.Karlsen@ergo.no


Ant 1.5's <jar/> task doesn't add new files to a Jar archive if it's run 
multiple times on the same file in the same Ant process. It seems that there is 
something wrong with the dependency checking of the archive contents. This 
behaviour was first seen with Ant 1.5, after using 1.5Beta3 and 1.4.1 without 
problems.

To reproduce:
1. Copy the enclosed build script sample into a file.
2. Run Ant 1.5 on it:
   $ ant -v 
3. Check the archive contents, test.jar:
   $ unzip -l test.jar 
4. The archive is still empty (except for the generated manifest file), but
   a single file should have been added by the second <jar/> invocation.

<?xml version="1.0"?>
<project name="Expose a Bug in Ant's Jar Task" default="jar" basedir=".">

  <target name="jar">
    <jar jarfile="test.jar"
      basedir="."
      excludes="*"/>

    <jar jarfile="test.jar"
      basedir="."
      includes="build.xml"
      excludes="test.jar"/>

  </target>

</project>

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


Mime
View raw message