Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.2
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
Index: C:/dev/workspace/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AntRunMojo.java
===================================================================
— C:/dev/workspace/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AntRunMojo.java (revision 416302)
+++ C:/dev/workspace/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AntRunMojo.java (working copy)
@@ -18,6 +18,7 @@
import java.io.File;
+import org.apache.maven.model.Resource;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.project.MavenProject;
import org.apache.tools.ant.Target;
@@ -75,6 +76,16 @@
private File testSourceRoot;
/**
+ * @parameter expression="$
"
+ */
+ private Resource resourceRoot;
+
+ /**
+ * @parameter expression="$
"
+ */
+
+ private Resource testResourceRoot;
+ /**
*/
public void execute()
throws MojoExecutionException
@@ -93,5 +104,16 @@
project.addTestCompileSourceRoot( testSourceRoot.toString() );
}
+ if (resourceRoot != null)
+
+
+ if (testResourceRoot != null)
+
}
}
Issue Links
- is duplicated by
-
MANTRUN-45
New parameters "resourceRoot" and "testResourceRoot "
-
I was just thinking that this feature would make my life much easier... and it comes with a patch! +1