brett       2005/04/14 22:29:44

  Modified:    maven-core-it-plugin/src/main/java/org/apache/maven/plugin/coreit
                        CoreItMojo.java
  Log:
  properly test basedir alignment
  
  Revision  Changes    Path
  1.7       +7 -3      
maven-components/maven-core-it-plugin/src/main/java/org/apache/maven/plugin/coreit/CoreItMojo.java
  
  Index: CoreItMojo.java
  ===================================================================
  RCS file: 
/home/cvs/maven-components/maven-core-it-plugin/src/main/java/org/apache/maven/plugin/coreit/CoreItMojo.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- CoreItMojo.java   22 Mar 2005 07:31:29 -0000      1.6
  +++ CoreItMojo.java   15 Apr 2005 05:29:44 -0000      1.7
  @@ -54,8 +54,7 @@
   {
       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 @@
   
           // 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 )
  
  
  

Reply via email to