dion ef19139ba0 Add test project for java plugin.
Only tests java:compile at the moment.

Change test project goal to "testPlugin" as it was conflicting with the test plugin
causing reactor issues


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114027 13f79535-47bb-0310-9956-ffa450edef68
2003-09-17 09:06:24 +00:00

17 lines
533 B
XML

<project xmlns:util="jelly:util"
xmlns:j="jelly:core">
<goal name="testPlugin" prereqs="test-java-compile">
<attainGoal name="clean"/>
<echo>clean done</echo>
</goal>
<goal name="test-java-compile">
<attainGoal name="java:compile"/>
<j:set var="expectedFile" value="${maven.build.dest}/org/apache/maven/Dummy.class"/>
<util:file var="file" name="${expectedFile}" />
<j:if test="${!(file.exists())}">
<fail>${expectedFile} not generated</fail>
</j:if>
</goal>
</project>