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:
Brett Leslie Porter 2005-04-15 05:29:44 +00:00
parent f4bf6c145d
commit 91467d5de3
1 changed files with 7 additions and 3 deletions

View File

@ -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 )