From 7e3d6dfb8c267e1e7e5f8f50c2ea63a64d89d8a3 Mon Sep 17 00:00:00 2001 From: vmassol Date: Sun, 21 Sep 2003 21:22:01 +0000 Subject: [PATCH] Complete rewrite of the plugin. Now using AspectJ 1.1 and performing binary weaving on jar generated by the jar:jar goal. Also supports creation and weaving-in of reusable aspect libraries. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114067 13f79535-47bb-0310-9956-ffa450edef68 --- aspectj/plugin.jelly | 290 ++++++++++++++++++++++------------- aspectj/plugin.properties | 30 +++- aspectj/project.xml | 21 ++- aspectj/xdocs/changes.xml | 9 +- aspectj/xdocs/goals.xml | 4 + aspectj/xdocs/index.xml | 15 +- aspectj/xdocs/properties.xml | 6 + 7 files changed, 251 insertions(+), 124 deletions(-) diff --git a/aspectj/plugin.jelly b/aspectj/plugin.jelly index 64232f6c..08592407 100644 --- a/aspectj/plugin.jelly +++ b/aspectj/plugin.jelly @@ -1,132 +1,206 @@ - + - - - - + - - - + + - + + + + + + + - + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - maven.javadoc.author,maven.javadoc.destdir, - maven.javadoc.links,maven.javadoc.maxmemory, - maven.javadoc.private,maven.javadoc.stylesheet, - maven.javadoc.use,maven.javadoc.version - + - - - - + + - + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/aspectj/plugin.properties b/aspectj/plugin.properties index 186c7e8d..211b974d 100644 --- a/aspectj/plugin.properties +++ b/aspectj/plugin.properties @@ -1 +1,29 @@ -maven.aspectj.ajc.option.emacssym=no +# ------------------------------------------------------------------- +# Default properties for the AspectJ Plugin +# ------------------------------------------------------------------- + +# If true, aspects located in ${pom.build.aspectSourceDirectory} will be +# weaved into the project java sources automatically upon invocation of +# the jar:jar goal. +maven.aspectj.autoweave = false + +# Name of the output jar containing the weaved aspects +maven.aspectj.outjar = ${maven.build.dir}/${maven.final.name}.jar + +# Name of non-weaved jar. The non-weaved jar (a.k.a input jar) will be +# moved to this name so that the new weaved jar can reuse the same name +maven.aspectj.injar.nonweaved = ${maven.build.dir}/${maven.final.name}-notweaved.jar + +# List of resource files to exclude when copying resources from the input jar +# to the weaved output jar +maven.aspectj.sourceRootCopyFilters = **/CVS/*,**/*.java,**/*.aj + +# If true, emit .ajesym symbol files for Emacs support +maven.aspectj.emacssym = no + +# If true, run in debug mode +maven.aspectj.debug = false + +# Name of the output jar of reusable aspects. Used only in the +# aspectj:jar goal +maven.aspectj.library = ${maven.build.dir}/${pom.artifactId}-aspects-${pom.currentVersion}.jar diff --git a/aspectj/project.xml b/aspectj/project.xml index 5038d31a..91459fcb 100644 --- a/aspectj/project.xml +++ b/aspectj/project.xml @@ -5,7 +5,7 @@ 3 maven-aspectj-plugin Maven AspectJ Plug-in - 1.1 + 2.0-SNAPSHOT Eclipse Plugin for AspectJ http://maven.apache.org/reference/plugins/aspectj/ @@ -20,6 +20,11 @@ 1.1 MAVEN_ASPECTJ_1_1 + + 2.0 + 2.0 + HEAD + @@ -57,23 +62,15 @@ aspectj aspectjrt - 1.0.6 + 1.1.0 root aspectj - aspectj-ant - 1.0.6 - - root - - - - aspectj - aspectj-tools - 1.0.6 + aspectjtools + 1.1.0 root diff --git a/aspectj/xdocs/changes.xml b/aspectj/xdocs/changes.xml index cc10a0b6..1c4f3e10 100644 --- a/aspectj/xdocs/changes.xml +++ b/aspectj/xdocs/changes.xml @@ -3,15 +3,22 @@ Changes dIon Gillard + Vincent Massol + + + Complete rewrite of the plugin. Now using AspectJ 1.1 and performing + binary weaving on jar generated by the jar:jar goal. Also + supports creation and weaving-in of reusable aspect libraries. + + Added documentation for navigation, changes, properties and goals - Original release for Maven 1.0-beta6 diff --git a/aspectj/xdocs/goals.xml b/aspectj/xdocs/goals.xml index 62bf0f4b..9c88ab69 100644 --- a/aspectj/xdocs/goals.xml +++ b/aspectj/xdocs/goals.xml @@ -8,6 +8,9 @@
+

Todo. For the time being, please refer to the plugin.jelly file +in the aspectj plugin directory.

+
diff --git a/aspectj/xdocs/index.xml b/aspectj/xdocs/index.xml index 4cd91ed5..5970f4de 100644 --- a/aspectj/xdocs/index.xml +++ b/aspectj/xdocs/index.xml @@ -4,14 +4,25 @@ Maven AspectJ Plug-in dIon Gillard + Vincent Massol

- This plugin provides the basic facilities for compiling - code using AspectJ. + AspectJ plugin for Maven. It offers the following features:

+
    +
  • + Ability to automatically weave aspects on the jar generated + by the jar plugin. This also includes the ability to add + dependencies on reusable aspect libraries located in your Maven + repository. +
  • +
  • + Ability to generate and deploy a reusable aspect jar. +
  • +

For more information on the functionality provided by this plugin, please see the Goals document. diff --git a/aspectj/xdocs/properties.xml b/aspectj/xdocs/properties.xml index f2924511..f100340f 100644 --- a/aspectj/xdocs/properties.xml +++ b/aspectj/xdocs/properties.xml @@ -4,10 +4,15 @@ Maven AspectJ Plugin Properties dIon Gillard + Vincent Massol

+

Todo. For the time being, please refer to the plugin.properties file +in the aspectj plugin directory.

+