mirror of https://github.com/apache/maven.git
Added testSourceRoot too as suggested by Piotr Burdylo on IRC.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@326879 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8a54ef6643
commit
2b1488cc7e
|
@ -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() );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue