ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject RE: File name to a string
Date Mon, 25 Oct 2004 15:09:51 GMT
--- craig_e_davis@comcast.net wrote:
> 
> <project name="FileRead" default="Read">
>    <target name = "Read">
>  
>     <fileset dir="c:\test" id="craig">
>        <include name="**/*.txt"/>
>     </fileset>
>   <pathconvert pathsep="," refid="craig"
> property="works">
>   </pathconvert>
>    <echo file="c:\works.txt" append="true">${works}
>    </echo>
<!--SEE WHERE I ADDED THE ACTUAL PROPERTY ABOVE -->
>   
>    </target>
> </project>

HTH,
Matt

P.S. Regarding ${line.separator}, this is a Java
property that will always be available.  Some like to
alias it to a shorter name if they would be using it a
lot:  <property name="br" value="${line.separator}" />
for example.


		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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


Mime
View raw message