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 23107] New: - condition checksum always sets property to true
Date Thu, 11 Sep 2003 15:46:24 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=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: dev@ant.apache.org
        ReportedBy: andi.eades@artworks.co.uk


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message