ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniels, Doug" <Doug.Dani...@GDC4S.Com>
Subject RE: how to convert path to fileset
Date Mon, 29 Mar 2004 13:02:51 GMT
Hi, B, you should check out the <pathconvert> task. It can take a <path> and
convert it into a single property, where you can set the path seperator
character etc. So for example in your case you can do this:

      <pathconvert property="struts.jars.list" pathsep=","
refid="struts.jars" />

	<copy todir="${build.dir}/WEB-INF/lib">
		<some-reference-to refid="${struts.jars.list}" />

This will store a the path elements in struts.jars as a single string
property of comma delimited items in the property struts.jars.list.

Check out the documentation for <pathconvert>

~ Doug Daniels

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

View raw message