From 90d6870bfd891a69fb91952501036620e44635ae Mon Sep 17 00:00:00 2001 From: vmassol Date: Wed, 24 Dec 2003 15:57:58 +0000 Subject: [PATCH] Start of an aspectwerkz plugin. Not working yet. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114500 13f79535-47bb-0310-9956-ffa450edef68 --- aspectwerkz/.cvsignore | 6 ++ aspectwerkz/plugin.jelly | 54 ++++++++++++++ aspectwerkz/plugin.properties | 13 ++++ aspectwerkz/project.properties | 6 ++ aspectwerkz/project.xml | 74 +++++++++++++++++++ aspectwerkz/src/plugin-test/.cvsignore | 2 + .../src/plugin-test/conf/aspectwerkz.xml | 11 +++ aspectwerkz/src/plugin-test/maven.xml | 8 ++ .../src/plugin-test/project.properties | 5 ++ aspectwerkz/src/plugin-test/project.xml | 39 ++++++++++ .../maven/aspectwerkz/SampleAspect.java | 26 +++++++ .../org/apache/maven/aspectwerkz/Target.java | 11 +++ aspectwerkz/xdocs/changes.xml | 18 +++++ aspectwerkz/xdocs/goals.xml | 18 +++++ aspectwerkz/xdocs/index.xml | 19 +++++ aspectwerkz/xdocs/navigation.xml | 16 ++++ aspectwerkz/xdocs/properties.xml | 43 +++++++++++ 17 files changed, 369 insertions(+) create mode 100644 aspectwerkz/.cvsignore create mode 100644 aspectwerkz/plugin.jelly create mode 100644 aspectwerkz/plugin.properties create mode 100644 aspectwerkz/project.properties create mode 100644 aspectwerkz/project.xml create mode 100644 aspectwerkz/src/plugin-test/.cvsignore create mode 100644 aspectwerkz/src/plugin-test/conf/aspectwerkz.xml create mode 100644 aspectwerkz/src/plugin-test/maven.xml create mode 100644 aspectwerkz/src/plugin-test/project.properties create mode 100644 aspectwerkz/src/plugin-test/project.xml create mode 100644 aspectwerkz/src/plugin-test/src/main/org/apache/maven/aspectwerkz/SampleAspect.java create mode 100644 aspectwerkz/src/plugin-test/src/main/org/apache/maven/aspectwerkz/Target.java create mode 100644 aspectwerkz/xdocs/changes.xml create mode 100644 aspectwerkz/xdocs/goals.xml create mode 100644 aspectwerkz/xdocs/index.xml create mode 100644 aspectwerkz/xdocs/navigation.xml create mode 100644 aspectwerkz/xdocs/properties.xml diff --git a/aspectwerkz/.cvsignore b/aspectwerkz/.cvsignore new file mode 100644 index 00000000..f7c90c3b --- /dev/null +++ b/aspectwerkz/.cvsignore @@ -0,0 +1,6 @@ +target +maven.log +velocity.log +build.properties +.classpath +.project diff --git a/aspectwerkz/plugin.jelly b/aspectwerkz/plugin.jelly new file mode 100644 index 00000000..275a53cd --- /dev/null +++ b/aspectwerkz/plugin.jelly @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/aspectwerkz/plugin.properties b/aspectwerkz/plugin.properties new file mode 100644 index 00000000..54338579 --- /dev/null +++ b/aspectwerkz/plugin.properties @@ -0,0 +1,13 @@ +# Location of AW sources +maven.aspectwerkz.src.dir = ${basedir}/src/main + +# Location of AW XML definition file +maven.aspectwerkz.definition.file = ${basedir}/conf/aspectwerkz.xml + +# (optional). Definition file to be merged with the main definition file. +# Used by the goal. +# maven.aspectwerkz.definition.merge.file = + +# (optional). UUID to use. If not specified a default one will be automatically +# generated. Used by the goal. +# maven.aspectwerkz.uuid = diff --git a/aspectwerkz/project.properties b/aspectwerkz/project.properties new file mode 100644 index 00000000..6fc6f3df --- /dev/null +++ b/aspectwerkz/project.properties @@ -0,0 +1,6 @@ +# ------------------------------------------------------------------- +# P R O J E C T P R O P E R T I E S +# ------------------------------------------------------------------- +maven.xdoc.date=left +maven.xdoc.version=${pom.currentVersion} +maven.license.licenseFile=${basedir}/../LICENSE.txt diff --git a/aspectwerkz/project.xml b/aspectwerkz/project.xml new file mode 100644 index 00000000..7f69bdab --- /dev/null +++ b/aspectwerkz/project.xml @@ -0,0 +1,74 @@ + + + + ../project.xml + 3 + maven-aspectwerkz-plugin + Maven AspectWerkz Plug-in + 1.0-SNAPSHOT + Plugin for AspectWerkz + AspectWerkz plugin + http://maven.apache.org/reference/plugins/aspectwerkz/ + http://jira.codehaus.org/BrowseProject.jspa?id=xxxx + /www/maven.apache.org/reference/plugins/aspectwerkz/ + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/aspectwerkz/ + http://cvs.apache.org/viewcvs/maven-plugins/aspectwerkz/ + + + + 1.0 + 1.0 + HEAD + + + + + Vincent Massol + vmassol + vmassol@pivolis.com + Pivolis + + Creator + Java Developer + Release Manager + + + + + + aspectwerkz + aspectwerkz-core + 0.9.RC1 + + + aspectwerkz + aspectwerkz + 0.9.RC1 + + + qdox + qdox + 1.3 + + + trove + trove + 1.0.2 + + + dom4j + dom4j + 1.4 + + + + maven-changes-plugin + maven-changelog-plugin + maven-file-activity-plugin + maven-developer-activity-plugin + maven-file-activity-plugin + maven-license-plugin + maven-linkcheck-plugin + + diff --git a/aspectwerkz/src/plugin-test/.cvsignore b/aspectwerkz/src/plugin-test/.cvsignore new file mode 100644 index 00000000..b0afd1ae --- /dev/null +++ b/aspectwerkz/src/plugin-test/.cvsignore @@ -0,0 +1,2 @@ +gump.xml +*.log diff --git a/aspectwerkz/src/plugin-test/conf/aspectwerkz.xml b/aspectwerkz/src/plugin-test/conf/aspectwerkz.xml new file mode 100644 index 00000000..79051d4f --- /dev/null +++ b/aspectwerkz/src/plugin-test/conf/aspectwerkz.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/aspectwerkz/src/plugin-test/maven.xml b/aspectwerkz/src/plugin-test/maven.xml new file mode 100644 index 00000000..4aeaae35 --- /dev/null +++ b/aspectwerkz/src/plugin-test/maven.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/aspectwerkz/src/plugin-test/project.properties b/aspectwerkz/src/plugin-test/project.properties new file mode 100644 index 00000000..095bc845 --- /dev/null +++ b/aspectwerkz/src/plugin-test/project.properties @@ -0,0 +1,5 @@ +# ------------------------------------------------------------------- +# P R O J E C T P R O P E R T I E S +# ------------------------------------------------------------------- + +maven.aspectwerkz.uuid = test diff --git a/aspectwerkz/src/plugin-test/project.xml b/aspectwerkz/src/plugin-test/project.xml new file mode 100644 index 00000000..a7a6abc3 --- /dev/null +++ b/aspectwerkz/src/plugin-test/project.xml @@ -0,0 +1,39 @@ + + + + 3 + test-maven-aspectwerkz-plugin + Test project for Maven AspectWerkz Plugin + maven + 1.0-SNAPSHOT + + Apache Software Foundation + http://www.apache.org/ + http://maven.apache.org/images/jakarta-logo-blue.gif + + 2003 + org.apache.maven + http://maven.apache.org/images/maven.jpg + Test for Maven AspectWerkz plugin + Test for Maven AspectWerkz plugin + http://maven.apache.org/reference/plugins/aspectwerkz/ + /www/maven.apache.org/reference/plugins/aspectwerkz/ + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/aspectwerkz/ + http://cvs.apache.org/viewcvs/maven/src/plugins-build/aspectwerkz/ + + + + Vincent Massol + vmassol + vmassol@pivolis.com + Pivolis + + Developer + + + + + src/main + + diff --git a/aspectwerkz/src/plugin-test/src/main/org/apache/maven/aspectwerkz/SampleAspect.java b/aspectwerkz/src/plugin-test/src/main/org/apache/maven/aspectwerkz/SampleAspect.java new file mode 100644 index 00000000..630b1ff8 --- /dev/null +++ b/aspectwerkz/src/plugin-test/src/main/org/apache/maven/aspectwerkz/SampleAspect.java @@ -0,0 +1,26 @@ +package org.apache.maven.aspectwerkz; + +import org.codehaus.aspectwerkz.attribdef.Pointcut; +import org.codehaus.aspectwerkz.attribdef.aspect.Aspect; +import org.codehaus.aspectwerkz.joinpoint.JoinPoint; + +/** + * @Aspect + * + * @author Vincent Massol + */ +public class SampleAspect extends Aspect +{ + /** + * @Execution * *..Target.someMethod(..) + */ + Pointcut samplePointcut; + + /** + * @Around samplePointcut + */ + public Object sampleAdvice(final JoinPoint joinPoint) throws Throwable + { + return joinPoint.proceed(); + } +} diff --git a/aspectwerkz/src/plugin-test/src/main/org/apache/maven/aspectwerkz/Target.java b/aspectwerkz/src/plugin-test/src/main/org/apache/maven/aspectwerkz/Target.java new file mode 100644 index 00000000..aa18e865 --- /dev/null +++ b/aspectwerkz/src/plugin-test/src/main/org/apache/maven/aspectwerkz/Target.java @@ -0,0 +1,11 @@ +package org.apache.maven.aspectwerkz; + +/** + * @author Vincent Massol + */ +public class Target +{ + public static void someMethod() + { + } +} diff --git a/aspectwerkz/xdocs/changes.xml b/aspectwerkz/xdocs/changes.xml new file mode 100644 index 00000000..47132cbb --- /dev/null +++ b/aspectwerkz/xdocs/changes.xml @@ -0,0 +1,18 @@ + + + + Changes + Vincent Massol + + + + + + + Plugin creation. + + + + + + diff --git a/aspectwerkz/xdocs/goals.xml b/aspectwerkz/xdocs/goals.xml new file mode 100644 index 00000000..37d41101 --- /dev/null +++ b/aspectwerkz/xdocs/goals.xml @@ -0,0 +1,18 @@ + + + + + Maven AspectWerkz plugin goals + Vincent Massol + + + + + aspectwerkz:attributec + + Compile AspectWerkz javadoc attributes. + + + + + \ No newline at end of file diff --git a/aspectwerkz/xdocs/index.xml b/aspectwerkz/xdocs/index.xml new file mode 100644 index 00000000..cd5e1067 --- /dev/null +++ b/aspectwerkz/xdocs/index.xml @@ -0,0 +1,19 @@ + + + + + Maven AspectWerkz plugin + Vincent Massol + + + +
+

+ Offers goals to manipulate + AspectWerkz + sources: attribute compilation, offline weaving of aspects, + execution of weaved application, etc. +

+
+ +
diff --git a/aspectwerkz/xdocs/navigation.xml b/aspectwerkz/xdocs/navigation.xml new file mode 100644 index 00000000..347c63a3 --- /dev/null +++ b/aspectwerkz/xdocs/navigation.xml @@ -0,0 +1,16 @@ + + + + Maven AspectWerkz plugin + + + + + + + + + + + + diff --git a/aspectwerkz/xdocs/properties.xml b/aspectwerkz/xdocs/properties.xml new file mode 100644 index 00000000..773923ac --- /dev/null +++ b/aspectwerkz/xdocs/properties.xml @@ -0,0 +1,43 @@ + + + + + AspectWerkz properties + Vincent Massol + + +
+ + + + + + + + + + + + + + + + + + + + + +
PropertyOptional?Description
maven.aspectwerkz.src.dirYes + Location of aspect sources. Default location is + ${basedir}/src/aspectwerkz. +
maven.aspectwerkz.definition.merge.fileYes + Definition file to be merged with the main definition file. + This property is not defined by default. +
maven.aspectwerkz.uuidYes + UUID to use. If not specified a default one will be + automatically generated. This property is not defined by default. +
+
+ +
\ No newline at end of file