ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chris.holman" <>
Subject Re: Fail if any of many files contains a string
Date Thu, 28 Oct 2010 12:28:43 GMT

I found this alternative solution. 
Putting it here for myself as much as anything else.

	<path id="usedByPathConvert" >
		<fileset id="conditionFileSet" dir="${dir.out.css}" includes="**/*.ccs">
			<containsregexp expression="@(.*?)@"/>

	<pathconvert refid="usedByPathConvert" property="filesFoundString" />

	<fail message="Found string in the following files: \n${filesFoundString}">
			<resourcecount refid="conditionFileSet" when="greater" count="0" />

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message