You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by br...@apache.org on 2005/02/27 23:23:27 UTC
cvs commit: maven-components/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin TestCompilerMojo.java
brett 2005/02/27 14:23:27
Modified: maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin
TestCompilerMojo.java
Log:
compile based on source roots for test mojo too
Revision Changes Path
1.6 +5 -14 maven-components/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java
Index: TestCompilerMojo.java
===================================================================
RCS file: /home/cvs/maven-components/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- TestCompilerMojo.java 14 Jan 2005 21:36:17 -0000 1.5
+++ TestCompilerMojo.java 27 Feb 2005 22:23:27 -0000 1.6
@@ -1,27 +1,20 @@
package org.apache.maven.plugin;
-import org.codehaus.plexus.compiler.Compiler;
-import org.codehaus.plexus.compiler.CompilerError;
-import org.codehaus.plexus.compiler.javac.JavacCompiler;
-import java.io.File;
-import java.util.Iterator;
-import java.util.List;
/**
* @goal testCompile
*
* @description Compiles test sources
*
- * @prereq compiler:compile
- *
* @parameter
- * name="sourceDirectory"
- * type="String"
+ * name="compileSourceRootsList"
+ * type="java.util.List"
* required="true"
* validator=""
- * expression="#project.build.unitTestSourceDirectory"
+ * expression="#project.testCompileSourceRootsList"
* description=""
+ *
* @parameter
* name="outputDirectory"
* type="String"
@@ -46,8 +39,6 @@
*
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id$
- * @todo use compile source roots and not the pom.build.sourceDirectory so that any
- * sort of preprocessing and/or source generation can be taken into consideration.
*/
public class TestCompilerMojo
extends CompilerMojo