From: wisberg Date: Tue, 12 Jul 2005 21:00:30 +0000 (+0000) Subject: Ant 1.6 antlib.xml support, per bug 103493 X-Git-Tag: PRE_ANDY~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=94ad04399fc4257a54701ce54cc65d7a007a842d;p=aspectj.git Ant 1.6 antlib.xml support, per bug 103493 --- diff --git a/docs/devGuideDB/antsupport.xml b/docs/devGuideDB/antsupport.xml index 900107bbb..d0a4876c6 100644 --- a/docs/devGuideDB/antsupport.xml +++ b/docs/devGuideDB/antsupport.xml @@ -56,11 +56,11 @@ at http://eclipse.org/aspectj. - In Ant, third-party tasks can be declared using a taskdef entry in + In Ant 1.5, third-party tasks can be declared using a taskdef entry in the build script, to identify the name and classes. When declaring a task, include the aspectjtools.jar either in the - taskdef classpath or in ${ANT_HOME}/lib where it will be added + taskdef classpath or in ${ANT_HOME}/lib where it will be added to the system class path by the ant script. You may specify the task script names directly, or use the "resource" attribute to specify the default names: @@ -76,6 +76,29 @@ The current resource file retains the name "ajc" for the Ajc10 task, and uses "iajc" for the AspectJ post-1.1 task. + + In Ant 1.6, third-party tasks are declared in their own namespace + using antlib.xml. For example, the following + script would build and run the spacewar example, if you put the + script in the examples directory and aspectjtools.jar + in the ${ANT_HOME}/lib directory. + + + + + + + + +]]> + For more information on using Ant, please refer to Jakarta's documentation on integrating user-defined Ant tasks into builds. diff --git a/taskdefs/src/org/aspectj/antlib.xml b/taskdefs/src/org/aspectj/antlib.xml new file mode 100644 index 000000000..82022f07c --- /dev/null +++ b/taskdefs/src/org/aspectj/antlib.xml @@ -0,0 +1,13 @@ + + + + +