ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis Galiegue <...@one2team.com>
Subject Re: Logging for apply task
Date Thu, 07 May 2009 23:48:52 GMT
Le Friday 08 May 2009 00:06:03 David Raich, vous avez écrit :
> Does anyone have a way to make <apply> log a one-line summary for
> each file it applies its command to?
>

Using ant-contrib's <for>, this is easy:

<for param="file">
	<fileset>
		<!-- whatever your fileset is, even by refid -->
	</fileset>
	<sequential>
		<!-- @{file} refers to for's param attribute -->
		<echo message="Processing file @{file}"/>
		<do-something with="param"/>
	</sequential>
</for>


-- 
Francis Galiegue
fge@one2team.com
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
One2team
40 avenue Raymond Poincaré
75116 Paris

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


Mime
View raw message