mirror of https://github.com/apache/maven.git
properly test basedir alignment
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163950 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f4bf6c145d
commit
91467d5de3
|
@ -54,8 +54,7 @@ public class CoreItMojo
|
|||
{
|
||||
private String outputDirectory;
|
||||
|
||||
// TODO: should be a File, but plugin manager can't convert that from an expression yet
|
||||
private String basedirAlignmentDirectory;
|
||||
private File basedirAlignmentDirectory;
|
||||
|
||||
private String pluginItem;
|
||||
|
||||
|
@ -68,8 +67,13 @@ public class CoreItMojo
|
|||
|
||||
// This parameter should be aligned to the basedir as the parameter type is specified
|
||||
// as java.io.File
|
||||
|
||||
if ( basedirAlignmentDirectory.getPath().equals( "target/test-basedir-alignment" ) )
|
||||
{
|
||||
throw new PluginExecutionException( "basedirAlignmentDirectory not aligned" );
|
||||
}
|
||||
|
||||
touch( new File( basedirAlignmentDirectory ), "touch.txt" );
|
||||
touch( basedirAlignmentDirectory, "touch.txt" );
|
||||
|
||||
// Test parameter setting
|
||||
if ( pluginItem != null )
|
||||
|
|
Loading…
Reference in New Issue