ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: "filesets" including directories
Date Mon, 21 Jun 2004 13:57:43 GMT
Like the name <fileset> sais: it´s used for files only.
For selecting directories the <dirset> is used.
Simplest thing would be a <path> and the use of <pathconvert> to create
a string of selected files and dirs.

Jan


> -----Original Message-----
> From: Markus Reis [mailto:markus.reis@researchstudio.at]
> Sent: Monday, June 21, 2004 3:55 PM
> To: user@ant.apache.org
> Subject: "filesets" including directories
> 
> 
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message