Ok this is what am I am trying am I even on the right track here... I am getting an 
error . "The content of elements must consist of well-formed data...Plus does that 
line seperator need to be declared somewhere first. Again I appologize for the 
ignorance. Just trying something different.

<project name="FileRead" default="yes">
   <target name = "Read">
 <path>
    <fileset dir="c:\test">
  
    <\fileset>
  <pathconvert pathsep=${line.separator">
  <echo file="c:\works.txt" append="true">
 <\path>
   </target>
</project>
-------------- Original message -------------- 

> --- [EMAIL PROTECTED] wrote: 
> 
> > Sorry if this seems very basic, but I am brand new 
> > to ANT. What I am trying to do is have a task read a 
> > directory and create an output text file with all 
> > the names that are in the directory. Is this 
> > possible. 
> 
> No problem, Craig. All you gotta do is use a 
> to select your files, wrap it in a , 
> pass that to a , and that to a 
> file. :) If you want one filename per line, you can 
> specify "${line.separator}" as 's pathsep 
> attribute. 
> 
> HTH, 
> Matt 
> 
> 
> 
> _______________________________ 
> Do you Yahoo!? 
> Declare Yourself - Register online to vote today! 
> http://vote.yahoo.com 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 

Reply via email to