cvs commit: ant/docs/manual/CoreTasks typedef.html
mbenson 2005/05/25 14:58:19 Modified:docs/manual/CoreTasks typedef.html Log: various inconsequentials/cleanup Revision ChangesPath 1.20 +34 -37ant/docs/manual/CoreTasks/typedef.html Index: typedef.html === RCS file: /home/cvs/ant/docs/manual/CoreTasks/typedef.html,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- typedef.html 29 Apr 2005 18:58:13 - 1.19 +++ typedef.html 25 May 2005 21:58:19 - 1.20 @@ -15,8 +15,8 @@ such that this new type or task can be used in the current project. -Tasks are any class that extend org.apache.tools.ant.Task or -a class that is adapted to a Task using an adapter class. +A Task is any class that extends org.apache.tools.ant.Task or +can be adapted as a Task using an adapter class. Data types are things like paths or @@ -25,10 +25,9 @@ Custom data types usually need custom tasks to put them to good use. -Two attributes are needed to make a definition, -the name that identifies this data type uniquely, and the full -name of the class (including the packages) that implements this -type. +Two attributes are needed to make a definition: the name that +identifies this data type uniquely, and the full name of the class +(including its package name) that implements this type. You can also define a group of definitions at once using the file or @@ -44,8 +43,7 @@ The xml format is described in the -Antlib -section. +Antlib section. Parameters @@ -64,7 +62,7 @@ classname the full class name implementing the data type -Yes, unless file or resource +Yes, unless file or resource have been specified. @@ -75,10 +73,10 @@ resource -Name of the resource to load definitions from. -If there is multiple resources of this name in the classpath, and the -format is "properties", the first resource will be loaded, otherwise -all the resources will be loaded. + Name of the resource to load definitions from. + If multiple resources by this name are found along the classpath, + and the format is "properties", the first resource will be loaded; + otherwise all such resources will be loaded. No @@ -88,41 +86,42 @@ are "properties" or "xml". If the value is "properties" the file/resource is a property file contains name to classname pairs. If the value is "xml", the file/resource is an xml file/resource structured according - to Antlib. + to Antlib. The default is "properties" unless the file/resource name ends with ".xml", in which case the format attribute will have the value "xml". - (introduced in ant1.6) + since Ant 1.6 No classpath the classpath to - use when looking up classname. No + use when looking up classname. +No classpathref - a reference to a classpath to use when looking up classname. + a reference to a classpath to use when looking up classname. + No -loaderRef the name of the loader that is -used to load the class, constructed from the specified classpath. Use this to -allow multiple tasks/types to be loaded with the same loader, so they can call -each other. ( introduced in ant1.5 ) +loaderRef +the name of the loader that is + used to load the class, constructed from the specified classpath. Use + this to allow multiple tasks/types to be loaded with the same loader, + so they can call each other. since Ant 1.5 No onerror The action to take if there was a failure in defining the - type. The values are fail - cause a build exception, report, - output a warning, but continue, ignore, do nothing. - (introduced in ant1.6) - An additional value is failall - causes all behavior of fail but also - causes a build exception for the resource or file attribute - if the resource or file is not found. - (introduced in ant1.7) + type. The values are fail: cause a build exception; report: + output a warning, but continue; ignore: do nothing. + since Ant 1.6 + An additional value is failall: cause all behavior of fail, + as well as a build exception for the resource or file attribute + if the resource or file is not found. since Ant 1.7 The default is fail. No @@ -134,9 +133,8 @@ "org.apache.tools.ant.TypeAdapter". The adapter class will be used to wrap the def
cvs commit: ant/docs/manual/CoreTasks typedef.html
peterreilly2004/10/06 02:18:10 Modified:docs/manual/CoreTasks Tag: ANT_16_BRANCH typedef.html Log: sync Revision ChangesPath No revision No revision 1.10.2.8 +27 -1 ant/docs/manual/CoreTasks/typedef.html Index: typedef.html === RCS file: /home/cvs/ant/docs/manual/CoreTasks/typedef.html,v retrieving revision 1.10.2.7 retrieving revision 1.10.2.8 diff -u -r1.10.2.7 -r1.10.2.8 --- typedef.html 27 Jul 2004 05:57:53 - 1.10.2.7 +++ typedef.html 6 Oct 2004 09:18:10 - 1.10.2.8 @@ -101,6 +101,12 @@ align="center" valign="top">No +classpathref + + a reference to a classpath to use when looking up classname. +No + + loaderRef the name of the loader that is used to load the class, constructed from the specified classpath. Use this to allow multiple tasks/types to be loaded with the same loader, so they can call @@ -168,10 +174,30 @@ and in the execute method invokes run on the proxied object, one may use a Runnable class as an Ant task. The following fragment defines a task called runclock. - + ++ + +The following fragment shows the use of the classpathref and +loaderref to load up two definitions. + + + + + ++ + Copyright © 2001-2004 The Apache Software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/docs/manual/CoreTasks typedef.html
peterreilly2004/10/06 02:17:37 Modified:docs/manual/CoreTasks typedef.html Log: document classpathref for PR: 31555 Reported by: Nathan Robertson Revision ChangesPath 1.16 +27 -1 ant/docs/manual/CoreTasks/typedef.html Index: typedef.html === RCS file: /home/cvs/ant/docs/manual/CoreTasks/typedef.html,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- typedef.html 27 Jul 2004 05:54:51 - 1.15 +++ typedef.html 6 Oct 2004 09:17:36 - 1.16 @@ -100,6 +100,12 @@ align="center" valign="top">No +classpathref + + a reference to a classpath to use when looking up classname. +No + + loaderRef the name of the loader that is used to load the class, constructed from the specified classpath. Use this to allow multiple tasks/types to be loaded with the same loader, so they can call @@ -167,10 +173,30 @@ and in the execute method invokes run on the proxied object, one may use a Runnable class as an Ant task. The following fragment defines a task called runclock. - + ++ + +The following fragment shows the use of the classpathref and +loaderref to load up two definitions. + + + + + ++ + Copyright © 2001-2004 Apache Software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/docs/manual/CoreTasks typedef.html
antoine 2004/07/26 22:57:53 Modified:docs/manual/OptionalTasks Tag: ANT_16_BRANCH dotnet.html docs/manual/CoreTasks Tag: ANT_16_BRANCH typedef.html Log: Merge from HEAD Submitted by: Yuji Yamano yyamano at kt dot rim dot or dot jp Revision ChangesPath No revision No revision 1.10.2.12 +1 -1 ant/docs/manual/OptionalTasks/dotnet.html Index: dotnet.html === RCS file: /home/cvs/ant/docs/manual/OptionalTasks/dotnet.html,v retrieving revision 1.10.2.11 retrieving revision 1.10.2.12 diff -u -r1.10.2.11 -r1.10.2.12 --- dotnet.html 20 Apr 2004 12:52:20 - 1.10.2.11 +++ dotnet.html 27 Jul 2004 05:57:52 - 1.10.2.12 @@ -73,7 +73,7 @@ vbc - Compiles VB.Net code + Compiles VB.NET code No revision No revision 1.10.2.7 +2 -2 ant/docs/manual/CoreTasks/typedef.html Index: typedef.html === RCS file: /home/cvs/ant/docs/manual/CoreTasks/typedef.html,v retrieving revision 1.10.2.6 retrieving revision 1.10.2.7 diff -u -r1.10.2.6 -r1.10.2.7 --- typedef.html 9 Feb 2004 22:12:07 - 1.10.2.6 +++ typedef.html 27 Jul 2004 05:57:53 - 1.10.2.7 @@ -89,7 +89,7 @@ is a property file contains name to classname pairs. If the value is "xml", the file/resource is an xml file/resource structured according to Antlib. - The default is "properties" unless the file/resorce name ends with + The default is "properties" unless the file/resource name ends with ".xml", in which case the format attribute will have the value "xml". (introduced in ant1.6) @@ -160,7 +160,7 @@ The following fragment defines define a type called urlset.- The data type is now availabe to Ant. The + The data type is now available to Ant. The class com.mydomain.URLSet implements this type. Assuming a class org.acme.ant.RunnableAdapter that - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/docs/manual/CoreTasks typedef.html
antoine 2004/07/26 22:54:51 Modified:docs/manual/CoreTasks typedef.html Log: typo Submitted by: Yuji Yamano yyamano at kt dot rim dot or dot jp Revision ChangesPath 1.15 +2 -2 ant/docs/manual/CoreTasks/typedef.html Index: typedef.html === RCS file: /home/cvs/ant/docs/manual/CoreTasks/typedef.html,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- typedef.html 15 Jan 2004 15:02:13 - 1.14 +++ typedef.html 27 Jul 2004 05:54:51 - 1.15 @@ -88,7 +88,7 @@ is a property file contains name to classname pairs. If the value is "xml", the file/resource is an xml file/resource structured according to Antlib. - The default is "properties" unless the file/resorce name ends with + The default is "properties" unless the file/resource name ends with ".xml", in which case the format attribute will have the value "xml". (introduced in ant1.6) @@ -159,7 +159,7 @@ The following fragment defines define a type called urlset.- The data type is now availabe to Ant. The + The data type is now available to Ant. The class com.mydomain.URLSet implements this type. Assuming a class org.acme.ant.RunnableAdapter that - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/docs/manual/CoreTasks typedef.html
bodewig 2004/01/15 07:08:48 Modified:docs/manual/CoreTasks Tag: ANT_16_BRANCH typedef.html Log: 2004 Revision ChangesPath No revision No revision 1.10.2.5 +1 -1 ant/docs/manual/CoreTasks/typedef.html Index: typedef.html === RCS file: /home/cvs/ant/docs/manual/CoreTasks/typedef.html,v retrieving revision 1.10.2.4 retrieving revision 1.10.2.5 diff -u -r1.10.2.4 -r1.10.2.5 --- typedef.html 15 Jan 2004 14:39:29 - 1.10.2.4 +++ typedef.html 15 Jan 2004 15:08:48 - 1.10.2.5 @@ -174,7 +174,7 @@ adapter="org.acme.ant.RunnableAdapter"/> -Copyright © 2001-2003 Apache Software +Copyright © 2001-2004 Apache Software Foundation. All rights Reserved. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/docs/manual/CoreTasks typedef.html
bodewig 2004/01/15 07:02:13 Modified:docs/manual/CoreTasks typedef.html Log: 2004 Revision ChangesPath 1.14 +1 -1 ant/docs/manual/CoreTasks/typedef.html Index: typedef.html === RCS file: /home/cvs/ant/docs/manual/CoreTasks/typedef.html,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- typedef.html 15 Jan 2004 14:38:46 - 1.13 +++ typedef.html 15 Jan 2004 15:02:13 - 1.14 @@ -173,7 +173,7 @@ adapter="org.acme.ant.RunnableAdapter"/> -Copyright © 2001-2003 Apache Software +Copyright © 2001-2004 Apache Software Foundation. All rights Reserved. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/docs/manual/CoreTasks typedef.html
peterreilly2004/01/15 06:39:29 Modified:docs/manual/CoreTasks Tag: ANT_16_BRANCH typedef.html Log: sync with head Revision ChangesPath No revision No revision 1.10.2.4 +1 -1 ant/docs/manual/CoreTasks/typedef.html Index: typedef.html === RCS file: /home/cvs/ant/docs/manual/CoreTasks/typedef.html,v retrieving revision 1.10.2.3 retrieving revision 1.10.2.4 diff -u -r1.10.2.3 -r1.10.2.4 --- typedef.html 30 Oct 2003 16:21:32 - 1.10.2.3 +++ typedef.html 15 Jan 2004 14:39:29 - 1.10.2.4 @@ -110,7 +110,7 @@ onerror The action to take if there was a failure in defining the - type. The values are fail - cause a build exception, warn + type. The values are fail - cause a build exception, report, output a warning, but continue, ignore, do nothing. The default is fail. (introduced in ant1.6) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/docs/manual/CoreTasks typedef.html
peterreilly2004/01/15 06:38:46 Modified:docs/manual/CoreTasks typedef.html Log: doc error for "onerror" attribute of typedef/taskdef, warn is actually report Revision ChangesPath 1.13 +1 -1 ant/docs/manual/CoreTasks/typedef.html Index: typedef.html === RCS file: /home/cvs/ant/docs/manual/CoreTasks/typedef.html,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- typedef.html 30 Oct 2003 16:04:48 - 1.12 +++ typedef.html 15 Jan 2004 14:38:46 - 1.13 @@ -109,7 +109,7 @@ onerror The action to take if there was a failure in defining the - type. The values are fail - cause a build exception, warn + type. The values are fail - cause a build exception, report, output a warning, but continue, ignore, do nothing. The default is fail. (introduced in ant1.6) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/docs/manual/CoreTasks typedef.html
peterreilly2003/10/30 08:04:48 Modified:docs/manual/CoreTasks typedef.html Log: document loading of multiple resources Revision ChangesPath 1.12 +6 -1 ant/docs/manual/CoreTasks/typedef.html Index: typedef.html === RCS file: /home/cvs/ant/docs/manual/CoreTasks/typedef.html,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- typedef.html 14 Oct 2003 09:59:19 - 1.11 +++ typedef.html 30 Oct 2003 16:04:48 - 1.12 @@ -73,7 +73,12 @@ resource -Name of the resouce to load definitions from. + +Name of the resource to load definitions from. +If there is multiple resources of this name in the classpath, and the +format is "properties", the first resource will be loaded, otherwise +all the resources will be loaded. + No - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/docs/manual/CoreTasks typedef.html
peterreilly2003/08/13 06:22:58 Modified:docs/manual/CoreTasks typedef.html Log: add in attribute uri for typedef Revision ChangesPath 1.9 +9 -0 ant/docs/manual/CoreTasks/typedef.html Index: typedef.html === RCS file: /home/cvs/ant/docs/manual/CoreTasks/typedef.html,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- typedef.html 24 Jul 2003 13:48:45 - 1.8 +++ typedef.html 13 Aug 2003 13:22:58 - 1.9 @@ -134,6 +134,15 @@ No + +uri + + Experimental + The uri that this definition should live in. + (introduced in ant1.6 Experimental) + +No + Parameters specified as nested elements classpath - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]