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: [email protected]
        ReportedBy: [email protected]


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.

Reply via email to