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:
Kenney Westerhof 2005-10-20 10:24:22 +00:00
parent 8a54ef6643
commit 2b1488cc7e
1 changed files with 11 additions and 0 deletions

View File

@ -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() );
}
}
}