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=23107>.
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=23107

condition checksum always sets property to true

           Summary: condition checksum always sets property to true
           Product: Ant
           Version: 1.5.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: UNCONFIRMED
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Create a couple of .txt files and run this ant script:

<project name="testChecksum" default="test" basedir=".">

        <fileset dir=".">
                <patternset id="files">
                        <include name="*.txt"/>
                </patternset>
        </fileset>

        <target name="test">    
                <checksum fileext=".checksum">
                        <fileset dir=".">
                                <patternset refid="files"/>
                        </fileset>
                </checksum>

                <condition property="isSame">
                        <checksum fileext=".checksum">
                                <fileset dir=".">
                                        <patternset refid="files"/>
                                </fileset>
                        </checksum>
                </condition>

                <echo message="isSame = ${isSame}"/>
        </target>

</project>

isSame property is always set to true regardless of whether the files have
changed or not.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to