From 7d7fc053b7a9233664ffc5635354025a41e9cccd Mon Sep 17 00:00:00 2001 From: Nico Seessle Date: Sun, 4 Feb 2001 01:00:41 +0000 Subject: [PATCH] Documented if and unless attributes of the nested include and exclude elements of PatternSet. Reported by Peter Donald (from the openejb-dev-list) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268572 13f79535-47bb-0310-9956-ffa450edef68 --- docs/index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/index.html b/docs/index.html index 8149e7704..28341f04c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -980,6 +980,19 @@ by tasks that support this feature, or by FileSets.

multiple elements separated by commas or spaces, the nested <include> and <exclude> elements expect their name attribute to hold a single pattern.

+

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.

+

For example

+
+<patternset id="sources" >
+  <include name="std/**/*.java"/>
+  <include name="prof/**/*.java" if="professional"/>
+  <exclude name="**/*Test*"/>
+</patternset>
+
+

will only include the files in the sub-directory prof if the property +professional is set to some value.

FileSets

FileSets are groups of files. These files can be found in a