From 3d429117ab7e50ffae01efda72fff4facd57802b Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Fri, 10 Aug 2007 22:31:15 +0000 Subject: [PATCH] 'doc' for componentdef git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@564789 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/componentdef.html | 62 +++++++++++++++++++++++++ docs/manual/coretasklist.html | 1 + 2 files changed, 63 insertions(+) create mode 100644 docs/manual/CoreTasks/componentdef.html diff --git a/docs/manual/CoreTasks/componentdef.html b/docs/manual/CoreTasks/componentdef.html new file mode 100644 index 000000000..b082fc178 --- /dev/null +++ b/docs/manual/CoreTasks/componentdef.html @@ -0,0 +1,62 @@ + + + + + + +Componentdef Task + + + + +

componentdef

+

Description

+

+ Adds a component definination to the current project. + A compenent definition is the same as a + typedef except: +

+
    +
  1. + that it can only be used in other types or tasks that + accept components (by having an add() method). +
  2. +
  3. + multiple components may have the same name, provided them + implement different interfaces. +
  4. +
+

+ The purpose of this it allow internal ant definitions to be + be made for tags like "and" or "or". +

+ +

Examples

+ +
 <componentdef name="or" onerror="ignore"
+    classname="com.apache.tools.ant.taskdefs.conditions.Or"/>
+  <componentdef name="or" onerror="ignore"
+    classname="com.apache.tools.ant.types.resources.selectors.Or"/>
+

+ defines two components with the same name "or", one is a condition + (see conditions) and one is + a selector (see selectors). +

+ + + diff --git a/docs/manual/coretasklist.html b/docs/manual/coretasklist.html index 48582ac11..2d2338919 100644 --- a/docs/manual/coretasklist.html +++ b/docs/manual/coretasklist.html @@ -53,6 +53,7 @@ Copy
Copydir
Copyfile
+Componentdef
Cvs
CvsChangeLog
CvsVersion