Ok, I seem to be getting closer at least. If someone has a minute and would't mind
helping me out here I would appriciate it. Nothing urgent or a priority. This is what
I have so far. It creates the works.txt but the file does not contain any information
in it. Thanks in advance for the help.
<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">
</echo>
</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]
>