ant filelist

来源:互联网 发布:社交网络电影百度云 编辑:程序博客网 时间:2024/06/05 07:27

 

filelist 指出的文件有可能是不存在的

<filelist     id="docfiles"     dir="${doc.src}"    files="foo.xml,bar.xml"/> 
文件用逗号隔开(commas)

The files ${doc.src}/foo.xml and ${doc.src}/bar.xml. Note that these files may not (yet) actually exist.

<filelist     id="docfiles"     dir="${doc.src}"    files="foo.xml           bar.xml"/> 

Same files as the example above.

<filelist refid="docfiles"/> 
//可以采用 id 引用

Same files as the example above.

<filelist     id="docfiles"     dir="${doc.src}">    <file name="foo.xml"/>    <file name="bar.xml"/></filelist>
//可以采用file 属性

Same files as the example above.