ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
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 [mailto:gsimpson@superscape.com] 
Sent: Friday, December 13, 2002 10:43 AM
To: 'ant-user@jakarta.apache.org'
Subject: stripping of file name extension

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>


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


Mime
View raw message