You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by martin sweitzer <ms...@gmail.com> on 2005/10/25 04:20:17 UTC

using fileset to only list the filenames and not the path+filename

How does one utilize fileset to only list the filenames and not the
path+filename?

example:

<apply dir="aDir" executable="anExe" output="aLog" append="true"
failonerror="true" >

<fileset dir="baz">
<filename name="**/*.foo"/>
</fileset>

<srcfile/>

<arg value="a bunch of params"/>

</apply>


That will result in the something like the following:

anExe d:/foo/bar/baz/file0 "a bunch of params"
anExe d:/foo/bar/baz/file1 "a bunch of params"
anExe d:/foo/bar/baz/file2 "a bunch of params"
anExe d:/foo/bar/baz/file3 "a bunch of params"
anExe d:/foo/bar/baz/file4 "a bunch of params"


The output desired would be:

anExe file0 a bunch of params
anExe file1 a bunch of params
anExe file2 a bunch of params
anExe file3 a bunch of params
anExe file4 a bunch of params


So:

0) how to get rid of the full path
1) how to get rid of the " " around the arg values