You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/12/20 09:27:12 UTC
[maven-antrun-plugin] 03/26: Added testSourceRoot too as suggested
by Piotr Burdylo on IRC.
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to annotated tag maven-antrun-plugin-1.1
in repository https://gitbox.apache.org/repos/asf/maven-antrun-plugin.git
commit fb5ff0d6f7f61230688aab817075d13e7a4c5b14
Author: Kenney Westerhof <ke...@apache.org>
AuthorDate: Thu Oct 20 10:24:22 2005 +0000
Added testSourceRoot too as suggested by Piotr Burdylo on IRC.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-antrun-plugin@326879 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/java/org/apache/maven/plugin/antrun/AntRunMojo.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/main/java/org/apache/maven/plugin/antrun/AntRunMojo.java b/src/main/java/org/apache/maven/plugin/antrun/AntRunMojo.java
index b0a789b..07c70fd 100644
--- a/src/main/java/org/apache/maven/plugin/antrun/AntRunMojo.java
+++ b/src/main/java/org/apache/maven/plugin/antrun/AntRunMojo.java
@@ -63,6 +63,10 @@ public class AntRunMojo
*/
private File sourceRoot;
+ /**
+ * @parameter expression="${testSourceRoot}"
+ */
+ private File testSourceRoot;
/**
*/
@@ -76,5 +80,12 @@ public class AntRunMojo
getLog().info( "Registering compile source root " + sourceRoot );
project.addCompileSourceRoot( sourceRoot.toString() );
}
+
+ if ( testSourceRoot != null )
+ {
+ getLog().info( "Registering compile test source root " + testSourceRoot );
+ project.addTestCompileSourceRoot( testSourceRoot.toString() );
+ }
+
}
}
--
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.