ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: stripping of file name extension
Date Fri, 13 Dec 2002 18:48:04 GMT
You should be able to do this using the <pathconvert>
task.

-Matt

--- Gavin Simpson <gsimpson@superscape.com> wrote:
> 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>
> 
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
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