From c991116c1ae3a0401155f631ebca95e09256496e Mon Sep 17 00:00:00 2001 From: vmassol Date: Fri, 7 May 2004 19:19:10 +0000 Subject: [PATCH] Applied patch from Carlos Sanchez. It's an almost complete rewrite of the 2.0 version of the plugin that is using AspectJ 1.2rc1 which allows bytecode weaving of directories. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115200 13f79535-47bb-0310-9956-ffa450edef68 --- aspectj/plugin.jelly | 262 ++++++++++++----------------------- aspectj/plugin.properties | 27 ++-- aspectj/project.xml | 28 ++-- aspectj/xdocs/changes.xml | 9 +- aspectj/xdocs/goals.xml | 50 +++---- aspectj/xdocs/index.xml | 164 ++++++++++++++++++++-- aspectj/xdocs/properties.xml | 131 +++++------------- 7 files changed, 323 insertions(+), 348 deletions(-) diff --git a/aspectj/plugin.jelly b/aspectj/plugin.jelly index 687d5119..46c34329 100644 --- a/aspectj/plugin.jelly +++ b/aspectj/plugin.jelly @@ -1,4 +1,5 @@ + - + xmlns:ant="jelly:ant"> - + + + - - - - - - - - @@ -79,155 +54,88 @@ - + - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + - + + + + + - + - - - - + - - - - - - - + + + - - - - - - - + + + + + + + + + + + + + + + Weaving with: ${dep.artifactId} + + + + + + + + + + + Weaving into: ${dep.artifactId} + + + + + + + - - - - - - - - - - - diff --git a/aspectj/plugin.properties b/aspectj/plugin.properties index a8c3c9c9..4e2cb9c4 100644 --- a/aspectj/plugin.properties +++ b/aspectj/plugin.properties @@ -18,21 +18,9 @@ # 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 +# List of resource files to exclude when copying resources from the input +# jar to the weaved output jar +maven.aspectj.sourceRootCopyFilter = **/CVS/*,**/*.java,**/*.aj # If true, emit .ajesym symbol files for Emacs support maven.aspectj.emacssym = no @@ -40,6 +28,9 @@ 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 +# If true, emit compiler status messages during the compile. +maven.aspectj.verbose = false + +# incremental mode: Build once, then recompile only required source files +# when user provides input. +maven.aspectj.incremental = false diff --git a/aspectj/project.xml b/aspectj/project.xml index 6cc29f4e..53e5da0d 100644 --- a/aspectj/project.xml +++ b/aspectj/project.xml @@ -23,9 +23,9 @@ 3 maven-aspectj-plugin Maven AspectJ Plug-in - 2.1-SNAPSHOT + 3.0-SNAPSHOT - Eclipse Plugin for AspectJ + AspectJ Plugin for Maven http://maven.apache.org/reference/plugins/aspectj/ http://jira.codehaus.org/BrowseProject.jspa?id=10320 /www/maven.apache.org/reference/plugins/aspectj/ @@ -46,8 +46,8 @@ MAVEN_ASPECTJ_2_0 - 2.1 - 2.1 + 3.0 + 3.0 HEAD @@ -74,22 +74,26 @@ + + + Carlos Sanchez + carlossg@users.sourceforge.net + + + Charlie Harvey + sbzoom@yahoo.com + + aspectj aspectjrt - 1.1.0 - - root - + 1.2rc1 aspectj aspectjtools - 1.1.0 - - root - + 1.2rc1 diff --git a/aspectj/xdocs/changes.xml b/aspectj/xdocs/changes.xml index 23db6874..3b6642ca 100644 --- a/aspectj/xdocs/changes.xml +++ b/aspectj/xdocs/changes.xml @@ -24,9 +24,16 @@ dIon Gillard Vincent Massol Jason van Zyl + Carlos Sanchez - + + + Another almost complete rewrite of the plugin. The plugin is now + using AspectJ 1.2rc1 and allows weaving at class level (instead of + at jar level which was a bad idea introduced in version 2.0 of the + plugin). It also supports weaving of dependent libraries. + Complete rewrite of the plugin. Now using AspectJ 1.1 and performing binary weaving on jar generated by the diff --git a/aspectj/xdocs/goals.xml b/aspectj/xdocs/goals.xml index fcafb09e..82e01821 100644 --- a/aspectj/xdocs/goals.xml +++ b/aspectj/xdocs/goals.xml @@ -1,4 +1,5 @@ + - + + + + aspectj:compile + + Weaves project classes and dependency libraries. + + + diff --git a/aspectj/xdocs/index.xml b/aspectj/xdocs/index.xml index 9bc430d2..71bdb67a 100644 --- a/aspectj/xdocs/index.xml +++ b/aspectj/xdocs/index.xml @@ -1,4 +1,5 @@ + + + + aspectj + aspectjrt + 1.2rc1 + http://www.eclipse.org/aspectj + + true + + + + + + + src/java + src/aspectj + + + + ]]> + + + diff --git a/aspectj/xdocs/properties.xml b/aspectj/xdocs/properties.xml index 4a52207f..bb807aea 100644 --- a/aspectj/xdocs/properties.xml +++ b/aspectj/xdocs/properties.xml @@ -1,4 +1,5 @@ + - +