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
This commit is contained in:
dion
2003-09-17 09:06:24 +00:00
parent 2ba1377552
commit ef19139ba0
11 changed files with 72 additions and 7 deletions

View File

@@ -0,0 +1,2 @@
gump.xml
*.log

View File

@@ -0,0 +1,17 @@
<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>

View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<pomVersion>3</pomVersion>
<id>test-maven-java-plugin</id>
<name>Test project for Maven Java Plugin</name>
<groupId>maven</groupId>
<currentVersion>1.0-SNAPSHOT</currentVersion>
<organization>
<name>Apache Software Foundation</name>
<url>http://www.apache.org/</url>
<logo>http://maven.apache.org/images/jakarta-logo-blue.gif</logo>
</organization>
<inceptionYear>2001</inceptionYear>
<package>org.apache.maven</package>
<logo>http://maven.apache.org/images/maven.jpg</logo>
<description>Test for Maven Java plugin</description>
<shortDescription>Test for Maven Java plugin</shortDescription>
<url>http://maven.apache.org/reference/plugins/java/</url>
<siteDirectory>/www/maven.apache.org/reference/plugins/java/</siteDirectory>
<repository>
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/java/</connection>
<url>http://cvs.apache.org/viewcvs/maven/src/plugins-build/java/</url>
</repository>
<developers>
<developer>
<name>dIon Gillard</name>
<id>dion</id>
<email>dion@multitask.com.au</email>
<organization>Multitask Consulting</organization>
<roles>
<role>Documentation</role>
</roles>
</developer>
</developers>
<build>
<sourceDirectory>src/main</sourceDirectory>
</build>
</project>

View File

@@ -0,0 +1,6 @@
package org.apache.maven;
public class Dummy
{
public String badChecky = "error";
}