Reputation: 27050
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!
Upvotes: 1
Views: 1470
Reputation: 5694
It sounds like PatternSet
s 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.
Upvotes: 1