FileLists are explicitly named lists of files. Whereas FileSets
act as filters, returning only those files that exist in the file
system and match specified patterns, FileLists are useful for
specifying files that may or may not exist. Multiple files are
specified as a list of files, relative to the specified directory,
with no support for wildcard expansion (filenames with wildcards will be
included in the list unchanged).
FileLists can appear inside tasks that support this feature or at the
same level as <target> (i.e., as children of
<project>).
ファイルリストとは明示的に名前指定されたファイルのリストです。
ファイルセットが、
ファイルシステム中に存在し、
与えられたパターンにマッチするファイルのみを返すようなフィルターのように振舞うのに対し、
ファイルリストは存在するかどうかわからないファイルを指定するのに便利です。
複数のファイルは、
与えられたディレクトリに関連して、
ワイルドカードの展開もサポートせず、
ファイルのリストとして指定されます。
(ワイルドカードを含むファイル名は、変更されないままリストに入れられます。)
ファイルリストは、
この機能をサポートするタスクの中か、
<target>と同じレベルで
(即ち、<project>の子として)現れます。
| Attribute | Description | Required |
| dir | The base directory of this FileList. | Yes |
| files | The list of file names. | Yes |
| 属性 | 説明 | 必須 |
| dir | ファイルリストのベースディレクトリ | Yes |
| files | ファイル名のリスト | Yes |
<filelist
id="docfiles"
dir="${doc.src}"
files="foo.xml,bar.xml"/>
The files ${doc.src}/foo.xml and
${doc.src}/bar.xml. Note that these files may not (yet)
actually exist.
The files
${doc.src}/foo.xml および
${doc.src}/bar.xml のファイル。
これらのファイルは(まだ)実際に存在しないかもしれないことに注意してください。
<filelist
id="docfiles"
dir="${doc.src}"
files="foo.xml
bar.xml"/>
Same files as the example above.
上の例と同じファイル
<filelist refid="docfiles"/>
Same files as the example above.
上の例と同じファイル
Copyright © 2001-2002,2004 The Apache Software Foundation. All rights Reserved.