ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gavin Simpson <gsimp...@superscape.com>
Subject stripping of file name extension
Date Fri, 13 Dec 2002 16:42:33 GMT
Hi,

I'm using the following <foreach> command within ant-contrib to iterate
through a bunch of files with a .xml extension. I wish to further process
the file name retruned in property "var" to remove the file extension
(.xml). How can I go about doing this?

Thanks in advance,
Gavin.

	<target name="foreach">
		<foreach target="loop" param="var">
			<fileset dir="."/>
		</foreach>
	</target>

	<target name="loop">
		.
		.
		.
		.
	</target>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message