ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Soesemann" <>
Subject foreach with relative path
Date Fri, 26 Nov 2004 17:16:26 GMT
My problem lies in the following snippet:

<target name="8_main">
	<foreach target="8_iterator" param="file-path" >
			<fileset dir="xmls" includes="**/*.xml"/>

<target name="8_iterator" >
	<echo message="${file-path}"/>

The output of the echo/$file-path variable are absolute paths like:

To further process files I need to get relative paths like:

How can I get this? Any idea?

Thanks in advance.


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

View raw message