Added goal to run the test application and verify (manually for the time being) that the weaving has been done correctly.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114680 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol 2004-02-04 07:24:23 +00:00
parent a0b8ffcd8f
commit 797f8c0543
3 changed files with 46 additions and 1 deletions

View File

@ -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>

View File

@ -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>

View File

@ -14,4 +14,10 @@ public class Target
{
System.out.println("someMethod2");
}
public static void main(String[] args)
{
Target.someMethod1();
Target.someMethod2();
}
}