vmassol 2004/02/03 23:24:23
Modified: aspectwerkz/src/plugin-test/child maven.xml project.xml
aspectwerkz/src/plugin-test/child/src/main/org/apache/maven/aspectwerkz
Target.java
Log:
Added goal to run the test application and verify (manually for the time being) that
the weaving has been done correctly.
Revision Changes Path
1.2 +20 -1 maven-plugins/aspectwerkz/src/plugin-test/child/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/maven-plugins/aspectwerkz/src/plugin-test/child/maven.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- maven.xml 28 Jan 2004 16:06:56 -0000 1.1
+++ maven.xml 4 Feb 2004 07:24:23 -0000 1.2
@@ -1,5 +1,24 @@
-<project xmlns:util="jelly:util" xmlns:j="jelly:core">
+<project xmlns:util="jelly:util" xmlns:j="jelly:core" xmlns:ant="jelly:ant">
<goal name="dist" prereqs="aspectwerkz:weave"/>
+
+ <!-- Execute the application to verify it works -->
+ <goal name="run">
+
+ <ant:java dir="${maven.build.dir}" failonerror="true" fork="true"
+ classname="org.apache.maven.aspectwerkz.Target">
+ <ant:sysproperty key="aspectwerkz.definition.file"
value="${basedir}/conf/aspectwerkz.xml"/>
+ <ant:classpath>
+ <ant:pathelement location="${maven.build.dir}/aspectwerkz/weaved"/>
+ <ant:pathelement
location="${pom.getDependencyPath('maven:test-maven-aspectwerkz-plugin-parent')}"/>
+ <ant:pathelement
location="${pom.getDependencyPath('aspectwerkz:aspectwerkz')}"/>
+ <ant:pathelement location="${pom.getDependencyPath('dom4j:dom4j')}"/>
+ <ant:pathelement location="${pom.getDependencyPath('trove:trove')}"/>
+ <ant:pathelement location="${pom.getDependencyPath('bcel:bcel')}"/>
+ <ant:pathelement location="${pom.getDependencyPath('jrexx:jrexx')}"/>
+ </ant:classpath>
+ </ant:java>
+
+ </goal>
</project>
1.3 +20 -0 maven-plugins/aspectwerkz/src/plugin-test/child/project.xml
Index: project.xml
===================================================================
RCS file: /home/cvs/maven-plugins/aspectwerkz/src/plugin-test/child/project.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- project.xml 28 Jan 2004 17:37:17 -0000 1.2
+++ project.xml 4 Feb 2004 07:24:23 -0000 1.3
@@ -12,5 +12,25 @@
<aspectwerkz.library>true</aspectwerkz.library>
</properties>
</dependency>
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.4</version>
+ </dependency>
+ <dependency>
+ <groupId>trove</groupId>
+ <artifactId>trove</artifactId>
+ <version>1.0.2</version>
+ </dependency>
+ <dependency>
+ <groupId>bcel</groupId>
+ <artifactId>bcel</artifactId>
+ <version>5.1</version>
+ </dependency>
+ <dependency>
+ <groupId>jrexx</groupId>
+ <artifactId>jrexx</artifactId>
+ <version>1.1.1</version>
+ </dependency>
</dependencies>
</project>
1.2 +6 -0
maven-plugins/aspectwerkz/src/plugin-test/child/src/main/org/apache/maven/aspectwerkz/Target.java
Index: Target.java
===================================================================
RCS file:
/home/cvs/maven-plugins/aspectwerkz/src/plugin-test/child/src/main/org/apache/maven/aspectwerkz/Target.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Target.java 28 Jan 2004 16:07:08 -0000 1.1
+++ Target.java 4 Feb 2004 07:24:23 -0000 1.2
@@ -9,4 +9,10 @@
{
System.out.println("someMethod2");
}
+
+ public static void main(String[] args)
+ {
+ Target.someMethod1();
+ Target.someMethod2();
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]