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 16119] New: - Uptodate incorrect when srcfile and targetfile point to files with same date
Date Wed, 15 Jan 2003 17:35:47 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=16119>.
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=16119

Uptodate incorrect when srcfile and targetfile point to files with same date

           Summary: Uptodate incorrect when srcfile and targetfile point to
                    files with same date
           Product: Ant
           Version: 1.5.1
          Platform: All
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: Larry.Isaacs@sas.com


When srcfile and targetfile point to files of the same date, the property is
not set, incorrectly implying that they are not up to date.  The following
script demonstrates this using a srcfiles element for comparison:

---------- build.xml ----------
<project name="test" default="showbug">
    <target name="showbug">
        <uptodate property="using.srcfile"
                  targetfile="build.xml" srcfile="build.xml"/>
        <uptodate property="using.nested.srcfiles"
                  targetfile="build.xml">
            <srcfiles dir="." includes="build.xml"/>
        </uptodate>
        <echo>
Using srcfile attribute, uptodate = ${using.srcfile}</echo>
        <echo>
Using nested srcfiles element, uptodate = ${using.nested.srcfiles}</echo>
    </target>
</project>
--------------------

My result is:

showbug:
     [echo]
     [echo] Using srcfile attribute, uptodate = ${using.srcfile}
     [echo]
     [echo] Using nested srcfiles element, uptodate = true

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