nico 01/02/03 17:00:42
Modified: docs index.html Log: Documented if and unless attributes of the nested include and exclude elements of PatternSet. Reported by Peter Donald (from the openejb-dev-list) Revision Changes Path 1.201 +14 -1 jakarta-ant/docs/index.html Index: index.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/index.html,v retrieving revision 1.200 retrieving revision 1.201 diff -u -r1.200 -r1.201 --- index.html 2001/02/01 23:37:21 1.200 +++ index.html 2001/02/04 01:00:41 1.201 @@ -34,7 +34,7 @@ <center> <p>Version: @VERSION@<br> -$Id: index.html,v 1.200 2001/02/01 23:37:21 nico Exp $</p> +$Id: index.html,v 1.201 2001/02/04 01:00:41 nico Exp $</p> </center> <hr> @@ -980,6 +980,19 @@ 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
