ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: stripping of file name extension
Date Fri, 13 Dec 2002 19:05:00 GMT
Use <basename>. Are you sure you need <foreach>? Sometimes there's something
in Ant official that does a hidden <foreach>, like <apply> for example. I'm
asking, just in case... --DD

-----Original Message-----
From: Gavin Simpson [] 
Sent: Friday, December 13, 2002 10:43 AM
To: ''
Subject: stripping of file name extension


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,

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

	<target name="loop">

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

View raw message