|
|
@@ -980,6 +980,19 @@ by tasks that support this feature, or by FileSets.</p> |
|
|
|
multiple elements separated by commas or spaces, the nested |
|
|
|
<include> and <exclude> elements expect their name |
|
|
|
attribute to hold a single pattern.</p> |
|
|
|
<p>The nested <include> and <exclude> elements allow you to use |
|
|
|
if and unless arguments to specify that the element should only be used if a |
|
|
|
property is set, or that it should be used only if a property is not set.</p> |
|
|
|
<p>For example</p> |
|
|
|
<blockquote><pre> |
|
|
|
<patternset id="sources" > |
|
|
|
<include name="std/**/*.java"/> |
|
|
|
<include name="prof/**/*.java" if="professional"/> |
|
|
|
<exclude name="**/*Test*"/> |
|
|
|
</patternset> |
|
|
|
</pre></blockquote> |
|
|
|
<p>will only include the files in the sub-directory <em>prof</em> if the property |
|
|
|
<em>professional</em> is set to some value.</p> |
|
|
|
|
|
|
|
<h3><a name="fileset">FileSets</a></h3> |
|
|
|
<p>FileSets are groups of files. These files can be found in a |
|
|
|