ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48618] New: Jar update takes file timestamp into account
Date Tue, 26 Jan 2010 10:40:57 GMT

           Summary: Jar update takes file timestamp into account
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core

In my ant build I have the following code:

<jar destfile="web.war">
  <fileset dir="web_project/WebContent" includes="WEB-INF/**"/>


<jar destfile="web.war" update="true">
  <fileset dir="override/WebContent" includes="WEB-INF/**"/>

Both directories contain a file called my_file.xml

When updating the jar in the 2nd ant task I see this debug message:

[jar] WEB-INF/my_file.xml omitted as WEB-INF/my_file.xml is up to date

The file in the override does indeed have a timestamp which is older than the
other file, but nevertheless I would expect ant to override this file since I
specifically asked to update the jar with the contents in the override

Is this the intented behaviour? If so it might be a good thing to add this to
the documentation.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message