ant-user mailing list archives

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


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/test.txt
${maven.src.dir}/plugins/abc.xml
${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 >
</ant:fileScanner>

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

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

thanks,
markus

-- 
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

http://dme.researchstudio.at/
http://www.researchstudio.at/



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message