ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabricio M. Sanchez" <fabri...@pstonline.co.uk>
Subject Regenerating Modified Selector cache file (after it's deleted)
Date Mon, 20 Aug 2007 14:20:45 GMT
Hi there,

I've been using google for a while with no useful answers... Hopefully
someone can point me in the right direction.

My "check" target works fine, it copies any files that are different to the
cache.properties file into my mod_src directory (excluding directories).

However, I am trying to regenerate my cache file with the "reset" target and
I don't know how.

Is there a way to just regenerate the cache from scratch (after it's been
deleted)? (Without copying all the files as part of the process).


	<target name="check">
		<copy todir="mod_src">
			<fileset dir="src">
				<and>
					<modified update="true"
seldirs="true" cache="propertyfile"	algorithm="digest"
comparator="equal">
						<param
name="cache.cachefile"     value="cache.properties"/>
						<param
name="algorithm.algorithm" value="MD5"/>
					</modified>
					<type type="file"/>
				</and>
			</fileset>
		</copy>
	</target>

	
	<target name="reset">
	  <!-- delete the cache to force an update -->
    <delete file="cache.properties"/>
    
	  <!-- update the cache without copying files -->
    <fileset dir="src">
			<modified update="true" seldirs="true"
cache="propertyfile"	algorithm="digest" comparator="equal">
				<param name="cache.cachefile"
value="cache.properties"/>
				<param name="algorithm.algorithm"
value="MD5"/>
			</modified>
		</fileset>
	  
	</target>


Thank you,

Fabricio

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date: 19/08/2007
07:27
 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message