From 7cd8917ae7659e6a683930696f520acc9c89f52b Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 10 Aug 2000 11:23:02 +0000 Subject: [PATCH] Added references to fileset where appropriate. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267918 13f79535-47bb-0310-9956-ffa450edef68 --- docs/index.html | 146 ++++++++++++++++++++++++++++++++++++------------ docs/junit.html | 10 ++-- 2 files changed, 115 insertions(+), 41 deletions(-) diff --git a/docs/index.html b/docs/index.html index 541421d29..97b178917 100644 --- a/docs/index.html +++ b/docs/index.html @@ -440,7 +440,23 @@ location attributes of its own, so

     <classpath path="${classpath}" />
 
- +

In addition, FileSets can be specified via +nested <fileset> and +<filesetref> elements. The order in which the files +building up FileSet are added to the PATH like structure is not +defined.

+
+    <classpath>
+      <pathelement path="${classpath}" />
+      <fileset dir="lib">
+        <include name="**/*.jar" />
+      </fileset;>
+      <pathelement location="classes" />
+    </classpath>
+
+

Builds a PATH which holds the value of ${classpath} +followed by all JAR files in the lib directory, followed +by the classes directory.

Command line arguments

Several tasks take arguments that shall be passed to another @@ -957,8 +973,13 @@ the files you want to have excluded. This is also done with patterns. And finally with the defaultexcludes attribute, you can specify whether you want to use default exclusions or not. See the section on directory based tasks, on how the -inclusion/exclusion of files works, and how to write patterns. The patterns are -relative to the src directory.

+inclusion/exclusion of files works, and how to write patterns.

+

This task forms an implicit FileSet and +supports all attributes of <fileset> +(dir becomes src) as well as the nested +<include>, <exclude>, +<patternset> and <patternsetref> +elements.

Parameters

@@ -1160,8 +1181,12 @@ the files you want to have excluded from the deletion process. This is also done finally with the defaultexcludes attribute, you can specify whether you want to use default exclusions or not. See the section on directory based tasks, on how the -inclusion/exclusion of files works, and how to write patterns. The patterns are -relative to the dir directory.

+inclusion/exclusion of files works, and how to write patterns.

+

This task forms an implicit FileSet and +supports all attributes of <fileset> as well as the +nested <include>, <exclude>, +<patternset> and <patternsetref> +elements.

Parameters

@@ -1426,8 +1451,13 @@ the files you want to have excluded. This is also done with patterns. And finally with the defaultexcludes attribute, you can specify whether you want to use default exclusions or not. See the section on directory based tasks, on how the -inclusion/exclusion of files works, and how to write patterns. The patterns are -relative to the src directory.

+inclusion/exclusion of files works, and how to write patterns.

+

This task forms an implicit FileSet and +supports all attributes of <fileset> +(dir becomes srcdir) as well as the nested +<include>, <exclude>, +<patternset> and <patternsetref> +elements.

Parameters

@@ -1798,8 +1828,13 @@ the files you want to have excluded. This is also done with patterns. And finally with the defaultexcludes attribute, you can specify whether you want to use default exclusions or not. See the section on directory based tasks, on how the -inclusion/exclusion of files works, and how to write patterns. The patterns are -relative to the basedir directory.

+inclusion/exclusion of files works, and how to write patterns.

+

This task forms an implicit FileSet and +supports all attributes of <fileset> +(dir becomes basedir) as well as the nested +<include>, <exclude>, +<patternset> and <patternsetref> +elements.

Parameters

@@ -1990,8 +2025,7 @@ the files you want to have excluded. This is also done with patterns. And finally with the defaultexcludes attribute, you can specify whether you want to use default exclusions or not. See the section on directory based tasks, on how the -inclusion/exclusion of files works, and how to write patterns. The patterns are -relative to the srcdir directory.

+inclusion/exclusion of files works, and how to write patterns.

It is possible to use different compilers. This can be selected with the "build.compiler" property. There are three choices:

Parameters specified as nested elements

-Being a directory based task, Javac supports the <include> and -<exclude> nested elements common to a number of Ant tasks. Javac also supports a -nested <src> element. This is used to specify multiple source paths. -Multiple src elements may be present and each specifies a source path which will be -searched by Javac for classes to compile. - +

This task forms an implicit FileSet and +supports all attributes of <fileset> +(dir becomes srcdir) as well as the nested +<include>, <exclude>, +<patternset> and <patternsetref> +elements.

src, classpath, bootclasspath and extdirs

Javac's srcdir, classpath, bootclasspath and extdirs attributes are <replacetoken> element.

file - file for which the token should be replaced. If not present the dir attribute - must be specified - No + file for which the token should be replaced. + Exactly one of the two. dir - The base directory to use when replacing a token in multiple files. If not present the file attribute - must be specified - No + The base directory to use when replacing a token in + multiple files. token @@ -2800,6 +2832,11 @@ must use a nested <replacetoken> element.

replaces occurrences of the string "@@@" with the string "wombat", in the file ${src}/index.html.

Parameters specified as nested elements

+

This task forms an implicit FileSet and +supports all attributes of <fileset> as well as the +nested <include>, <exclude>, +<patternset> and <patternsetref> +elements.

If either the text you want to replace or the replacement text cross line boundaries, you can use nested elements to specify them.

@@ -2838,8 +2875,13 @@ the files you want to have excluded. This is also done with patterns. And finally with the defaultexcludes attribute, you can specify whether you want to use default exclusions or not. See the section on directory based tasks, on how the -inclusion/exclusion of files works, and how to write patterns. The patterns are -relative to the base directory.

+inclusion/exclusion of files works, and how to write patterns.

+

This task forms an implicit FileSet and +supports all attributes of <fileset> +(dir becomes base) as well as the nested +<include>, <exclude>, +<patternset> and <patternsetref> +elements.

Parameters

@@ -3020,8 +3062,13 @@ the files you want to have excluded. This is also done with patterns. And finally with the defaultexcludes attribute, you can specify whether you want to use default exclusions or not. See the section on directory based tasks, on how the -inclusion/exclusion of files works, and how to write patterns. The patterns are -relative to the basedir directory.

+inclusion/exclusion of files works, and how to write patterns.

+

This task forms an implicit FileSet and +supports all attributes of <fileset> +(dir becomes basedir) as well as the nested +<include>, <exclude>, +<patternset> and <patternsetref> +elements.

Note that this task does not perform compression. You might want to use the GZip task to come up with a .tar.gz package.

Parameters

@@ -3192,8 +3239,13 @@ the files you want to have excluded. This is also done with patterns. And finally with the defaultexcludes attribute, you can specify whether you want to use default exclusions or not. See the section on directory based tasks, on how the -inclusion/exclusion of files works, and how to write patterns. The patterns are -relative to the basedir directory.

+inclusion/exclusion of files works, and how to write patterns.

+

This task forms an implicit FileSet and +supports all attributes of <fileset> +(dir becomes basedir) as well as the nested +<include>, <exclude>, +<patternset> and <patternsetref> +elements.

Parameters

@@ -3344,8 +3396,13 @@ the files you want to have excluded. This is also done with patterns. And finally with the defaultexcludes attribute, you can specify whether you want to use default exclusions or not. See the section on directory based tasks, on how the -inclusion/exclusion of files works, and how to write patterns. The patterns are -relative to the basedir directory.

+inclusion/exclusion of files works, and how to write patterns. +

This task forms an implicit FileSet and +supports all attributes of <fileset> +(dir becomes basedir) as well as the nested +<include>, <exclude>, +<patternset> and <patternsetref> +elements.

Parameters

@@ -3443,8 +3500,13 @@ other platforms. You must have the Microsoft cabarc tool available in your executable path.

See the section on directory based tasks, on how the inclusion/exclusion of files works, and how to -write patterns. The patterns are relative to the basedir -directory.

+write patterns.

+

This task forms an implicit FileSet and +supports all attributes of <fileset> +(dir becomes basedir) as well as the nested +<include>, <exclude>, +<patternset> and <patternsetref> +elements.

Parameters:

@@ -3707,8 +3769,13 @@ excluded. This is also done with patterns. And finally with the defaultexcludes attribute, you can specify whether you want to use default exclusions or not. See the section on directory based tasks, on how the -inclusion/exclusion of files works, and how to write patterns. The -patterns are relative to the srcDir directory.

+inclusion/exclusion of files works, and how to write patterns.

+

This task forms an implicit FileSet and +supports all attributes of <fileset> +(dir becomes srcdir) as well as the nested +<include>, <exclude>, +<patternset> and <patternsetref> +elements.

Parameters:

@@ -3952,8 +4019,13 @@ patterns are relative to the srcDir directory.

See the section on directory based tasks, on how the -inclusion/exclusion of files works, and how to write patterns. The -patterns are relative to the srcDir directory.

+inclusion/exclusion of files works, and how to write patterns. +This task forms an implicit FileSet and +supports all attributes of <fileset> +(dir becomes srcDir) as well as the nested +<include>, <exclude>, +<patternset> and <patternsetref> +elements.

Parameters:

diff --git a/docs/junit.html b/docs/junit.html index 5a3332721..ff9774a48 100644 --- a/docs/junit.html +++ b/docs/junit.html @@ -185,10 +185,12 @@ can be specified.

Define a number of tests based on pattern matching.

batchtest collects the included files from any number -of nested <fileset> and -<filesetref> elements. It then generates a test -class name for each file that ends in .java or -.class.

+of nested <fileset> and +<filesetref> (referring to a +<fileset> defined elsewhere via its ID +attribute) elements. It then generates a test class name for each file +that ends in .java or .class.