ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Reis <>
Subject "filesets" including directories
Date Mon, 21 Jun 2004 13:55:13 GMT

i want to assign a set of files and subdirectories contained in a 
specific directory (e.g.: ${maven.src.dir}/plugins) to a variable in 
order to iterate over each item in a loop (using jelly:forEach) and 
manipulate the items (e.g. rename each file and each subdirectory) in my 
maven build file.

let's say ${maven.src.dir}/plugins contains:
${maven.src.dir}/plugins/a_plugin (a subdirectory, which contains 
subdirectories and other files)

therefore i use a fileScanner and a nested fileset

<ant:fileScanner var="plugins">
   <ant:fileset dir="${maven.src.dir}/plugins" includes="*" />
    </ant:fileset >

the above fileset contains all files in the ${maven.src.dir}/plugins 
directory, but does NOT contain subdirectories
the result set:
NOT contained: ${maven.src.dir}/plugins/a_plugin

which ant tag/construct can hold files and directories (explicitly) ??
is there something like a directoryScanner ??


Mag. Markus Reis

Research Studios Austria - Digital Memory Engineering
ARC Seibersdorf research GmbH

Thurngasse 8/3/20, A-1090 Wien
Tel.: +43.1.585 05 37
Fax: +43.1.585 37 41

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message