ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject AW: Save fileset names to a file.
Date Fri, 16 Jul 2004 06:17:23 GMT
Two possibilities:

<fileset id="fs" dir="C:/temp"
<property name="fs.value" refid="fs"/>

That list contains a semicolon separated list of relative paths to C:/temp.

<fileset id="fs" dir="C:/temp"
<pathconvert property="fs.v2" refid="fs" pathsep="${line.separator}">
    <map from="C:\temp\" to=""/>

That list contains one entry per line. Because <pathconvert> converts the
of the fileset to absolute filenames, but all have the some root directory,
a nested <map> to delete that (platform dependend format).


> -----Urspr√ľngliche Nachricht-----
> Von: Donald Strong []
> Gesendet am: Freitag, 16. Juli 2004 02:19
> An: Ant Mail List
> Betreff: Save fileset names to a file.
> Hi all,
> I want to define a fileset and then save the names of the 
> files into a file.
> This is for an install utility that requires a list of the files to be
> packaged up. I can't just point it at a directory and tell it to slurp
> everything up.
> It would be useful if the task could output relative filenames rather
> than absolute.
> Any ideas anyone?
> Regards
> Donald.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message