From f4f93667716ac0a24636b7cf14b17899cd283d23 Mon Sep 17 00:00:00 2001 From: vmassol Date: Fri, 16 Jan 2004 11:49:23 +0000 Subject: [PATCH] - Allowed weaving to a different directory than ${maven.build.dest} - Fixed AspectWerkzC usage. I was wrongly weaving all dependent jars... :-) I believe the plugin now works for Attribdef offline mode. I haven't tried the other use cases. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114592 13f79535-47bb-0310-9956-ffa450edef68 --- aspectwerkz/plugin.jelly | 62 +++++++++++++------ aspectwerkz/plugin.properties | 9 ++- .../src/plugin-test/project.properties | 1 + aspectwerkz/xdocs/properties.xml | 20 +++++- 4 files changed, 72 insertions(+), 20 deletions(-) diff --git a/aspectwerkz/plugin.jelly b/aspectwerkz/plugin.jelly index 5432989e..c21fda48 100644 --- a/aspectwerkz/plugin.jelly +++ b/aspectwerkz/plugin.jelly @@ -185,8 +185,6 @@ - - - + + @@ -227,32 +226,49 @@ + + + + + + + + + + + + + + + - + + + + + + + + + + - - - - - - - - @@ -264,6 +280,14 @@ + + + + + + + + - - + + diff --git a/aspectwerkz/plugin.properties b/aspectwerkz/plugin.properties index e5c17f08..a190dcd5 100644 --- a/aspectwerkz/plugin.properties +++ b/aspectwerkz/plugin.properties @@ -21,6 +21,9 @@ maven.aspectwerkz.definition.validate = false # Verbose mode maven.aspectwerkz.verbose = false +# Classloader to use for class files weaving +aspectwerkz.classloader.preprocessor = org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor + # (optional) The AW plugin looks for source files in ${pom.sourceDirectory}. # It also supports all source directories added to the ${maven.compile.src.set} # Ant path variable. Moreover, if you wish to keep non-production aspects in a @@ -38,6 +41,9 @@ maven.aspectwerkz.verbose = false # Location of the XML definition file. maven.aspectwerkz.definition.file.src = ${basedir}/conf/aspectwerkz.xml +# Location where aspectc results will be generated. +maven.aspectwerkz.aspectc.build.dir = ${maven.build.dir}/aspectwerkz/aspectc + #---------------------------------------------------------------------------- # xmldef mode properties # --------------------------------------------------------------------------- @@ -47,7 +53,8 @@ maven.aspectwerkz.definition.file.src = ${basedir}/conf/aspectwerkz.xml # used in "xmldef" mode. maven.aspectwerkz.definition.file.build = ${maven.build.dir}/aspectwerkz.xml -# TODO: explain property here +# If set to "no", prevents org.codehaus.aspectwerkz and related classes +# (jexl, trove, dom4j...) from being instrumented. maven.aspectwerkz.transform.filter = no # (optional). Definition file to be merged with the main definition file. diff --git a/aspectwerkz/src/plugin-test/project.properties b/aspectwerkz/src/plugin-test/project.properties index 179a3350..06a18ebe 100644 --- a/aspectwerkz/src/plugin-test/project.properties +++ b/aspectwerkz/src/plugin-test/project.properties @@ -5,3 +5,4 @@ maven.aspectwerkz.verbose = true maven.aspectwerkz.src.dir = ${basedir}/src/aspectwerkz maven.aspectwerkz.build.dest = ${maven.build.dir}/aspectwerkz/classes +maven.aspectwerkz.weave.build.dir = ${maven.build.dir}/aspectwerkz/weaved diff --git a/aspectwerkz/xdocs/properties.xml b/aspectwerkz/xdocs/properties.xml index 02c4e96f..b62a3f5d 100644 --- a/aspectwerkz/xdocs/properties.xml +++ b/aspectwerkz/xdocs/properties.xml @@ -104,6 +104,14 @@ maven.aspectwerkz.build.dest = ${maven.build.dir}/aspectwerkz/classes. + + aspectwerkz.classloader.preprocessor + Yes + + Classloader to use for class files weaving. Defaults to + org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor. + + @@ -122,6 +130,14 @@ ${basedir}/conf/aspectwerkz.xml. + + maven.aspectwerkz.aspectc.build.dir + Yes + + Location where aspectc results will be generated. Defaults to + ${maven.build.dir}/aspectwerkz/aspectc. + + @@ -163,7 +179,9 @@ maven.aspectwerkz.transform.filter Yes - TODO: explain property here. Defaults to no. + If set to "no", prevents org.codehaus.aspectwerkz and + related classes (jexl, trove, dom4j...) from being instrumented. + Defaults to no.