tags:

views:

36

answers:

1

Hi, people!

Let us suppose I have a file called "list-of-files.txt" with this content:

file1.txt
file2.properties
file3.class

I would like to use this content in a ant :

<fileset filelist="list-of-files.txt" />

Is it possible?

Also, if I had this list of files in a property:

<property name="various.files" value="file1.txt,file2.properties,file3.class" />

is there a way to create a fileset with it? Something like:

<fileset files="${various.files}" />

Thank you in advance!

+1  A: 

It sounds like PatternSets might be of help. Look at the includes and includesfile attributes and nested elements. You can also look at the FileSet documentation to see how they're used in that context.

kschneid
Great! It worked perfectly!
brandizzi