ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48618] New: Jar update takes file timestamp into account
Date Tue, 26 Jan 2010 10:40:57 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48618

           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
        AssignedTo: notifications@ant.apache.org
        ReportedBy: lucky.koen@gmail.com


In my ant build I have the following code:

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

...

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

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
directory.

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

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message