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 fil开发者_StackOverflow中文版es 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!
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.
精彩评论