You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by vs...@apache.org on 2007/11/15 13:16:00 UTC

svn commit: r595285 - in /maven/plugins/trunk/maven-clean-plugin/src/test: java/org/apache/maven/plugin/clean/ java/org/apache/maven/plugin/clean/stubs/ resources/testDirectoryStructure/ resources/unit/ resources/unit/basic-clean-test/ resources/unit/b...

Author: vsiveton
Date: Thu Nov 15 04:15:57 2007
New Revision: 595285

URL: http://svn.apache.org/viewvc?rev=595285&view=rev
Log:
MCLEAN-8: conversion of the existing unit tests to use the AbstractMojoTestCase from the plugin testing harness
Submitted by: Jesse McConnell
Reviewed by: Vincent Siveton

o patch applied with several updates
o added test for lock files

Added:
    maven/plugins/trunk/maven-clean-plugin/src/test/java/org/apache/maven/plugin/clean/stubs/
    maven/plugins/trunk/maven-clean-plugin/src/test/java/org/apache/maven/plugin/clean/stubs/CleanProjectStub.java   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildDirectory/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildDirectory/file.txt   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildOutputDirectory/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildOutputDirectory/file.txt   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildTestDirectory/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildTestDirectory/file.txt   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/plugin-pom.xml   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/plugin-pom.xml   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/testDirectoryStructure/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/testDirectoryStructure/file.txt   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/testDirectoryStructure/outputDirectory/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/testDirectoryStructure/outputDirectory/file.txt   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/buildOutputDirectory/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/buildOutputDirectory/file.txt   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/plugin-pom.xml   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/classes/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/classes/file.txt   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/file.txt   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/subdir/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/subdir/file.txt   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/test-classes/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/test-classes/file.txt   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/invalid-directory-test/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/invalid-directory-test/plugin-pom.xml   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/invalid-directory-test/this-is-a-file
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/locked-file-test/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/locked-file-test/buildDirectory/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/locked-file-test/buildDirectory/file.txt   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/locked-file-test/plugin-pom.xml   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/missing-directory-test/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/missing-directory-test/plugin-pom.xml   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/plugin-pom.xml   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/classes/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/classes/file.txt   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/file.txt   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/subdir/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/subdir/file.txt   (with props)
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/test-classes/
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/test-classes/file.txt   (with props)
Removed:
    maven/plugins/trunk/maven-clean-plugin/src/test/resources/testDirectoryStructure/
Modified:
    maven/plugins/trunk/maven-clean-plugin/src/test/java/org/apache/maven/plugin/clean/CleanMojoTest.java

Modified: maven/plugins/trunk/maven-clean-plugin/src/test/java/org/apache/maven/plugin/clean/CleanMojoTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/java/org/apache/maven/plugin/clean/CleanMojoTest.java?rev=595285&r1=595284&r2=595285&view=diff
==============================================================================
--- maven/plugins/trunk/maven-clean-plugin/src/test/java/org/apache/maven/plugin/clean/CleanMojoTest.java (original)
+++ maven/plugins/trunk/maven-clean-plugin/src/test/java/org/apache/maven/plugin/clean/CleanMojoTest.java Thu Nov 15 04:15:57 2007
@@ -20,139 +20,149 @@
  */
 
 import java.io.File;
-import java.util.Arrays;
+import java.io.RandomAccessFile;
+import java.nio.channels.FileChannel;
+import java.nio.channels.FileLock;
 
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.testing.AbstractMojoTestCase;
-import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
-import org.apache.maven.project.MavenProject;
 import org.codehaus.plexus.util.FileUtils;
 
 /**
  * Test the clean mojo.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
  */
 public class CleanMojoTest
     extends AbstractMojoTestCase
 {
-    private static final String TARGET_TEST_DIR = "target/testDirectoryStructure";
-
-    private String basedir;
-
+    /** {@inheritDoc} */
     protected void setUp()
         throws Exception
     {
         super.setUp();
-
-        basedir = System.getProperty( "basedir", System.getProperty( "user.dir" ) );
-
-        FileUtils.copyDirectoryStructure( new File( basedir, "src/test/resources/testDirectoryStructure" ),
-                                          new File( basedir, TARGET_TEST_DIR ) );
     }
 
+    /** {@inheritDoc} */
     protected void tearDown()
         throws Exception
     {
         super.tearDown();
-
-        FileUtils.deleteDirectory( new File( basedir, TARGET_TEST_DIR ) );
     }
 
-    public void testClean()
+    /**
+     * Tests the simple removal of directories
+     *
+     * @throws Exception
+     */
+    public void testBasicClean()
         throws Exception
     {
-        String base = TARGET_TEST_DIR;
-        String directory = base + "/buildDirectory";
-        String outputDirectory = base + "/buildOutputDirectory";
-        String testOutputDirectory = base + "/buildTestDirectory";
-        String reportDirectory = base + "/reportDirectory";
+        String pluginPom = getBasedir() + "/src/test/resources/unit/basic-clean-test/plugin-pom.xml";
 
-        CleanMojo mojo = new CleanMojo();
-
-        mojo.setDirectory( new File( basedir, directory ) );
-        mojo.setOutputDirectory( new File( basedir, outputDirectory ) );
-        mojo.setTestOutputDirectory( new File( basedir, testOutputDirectory ) );
-        mojo.setReportDirectory( new File( basedir, reportDirectory ) );
+        CleanMojo mojo = (CleanMojo) lookupMojo( "clean", pluginPom );
+        assertNotNull( mojo );
 
         mojo.execute();
 
-        assertFalse( checkExists( directory ) );
-        assertFalse( checkExists( outputDirectory ) );
-        assertFalse( checkExists( testOutputDirectory ) );
-        assertFalse( checkExists( reportDirectory ) );
+        assertFalse( "Directory exists", checkExists( getBasedir() + "/target/test-classes/unit/"
+            + "basic-clean-test/buildDirectory" ) );
+        assertFalse( "Directory exists", checkExists( getBasedir() + "/target/test-classes/unit/basic-clean-test/"
+            + "buildOutputDirectory" ) );
+        assertFalse( "Directory exists", checkExists( getBasedir() + "/target/test-classes/unit/basic-clean-test/"
+            + "buildTestDirectory" ) );
     }
 
-    public void testNestedStructure()
+    /**
+     * Tests the removal of files and nested directories
+     *
+     * @throws Exception
+     */
+    public void testCleanNestedStructure()
         throws Exception
     {
-        String base = TARGET_TEST_DIR + "/target";
-        String outputDirectory = base + "/classes";
-        String testOutputDirectory = base + "/test-classes";
+        String pluginPom = getBasedir() + "/src/test/resources/unit/nested-clean-test/plugin-pom.xml";
 
-        CleanMojo mojo = new CleanMojo();
-
-        mojo.setDirectory( new File( basedir, base ) );
-        mojo.setOutputDirectory( new File( basedir, outputDirectory ) );
-        mojo.setTestOutputDirectory( new File( basedir, testOutputDirectory ) );
+        CleanMojo mojo = (CleanMojo) lookupMojo( "clean", pluginPom );
+        assertNotNull( mojo );
 
         mojo.execute();
 
-        assertFalse( checkExists( base ) );
-        assertFalse( checkExists( outputDirectory ) );
-        assertFalse( checkExists( testOutputDirectory ) );
-    }
-
-    private boolean checkExists( String testOutputDirectory )
-    {
-        return FileUtils.fileExists( new File( basedir, testOutputDirectory ).getAbsolutePath() );
+        assertFalse( checkExists( getBasedir() + "/target/test-classes/unit/nested-clean-test/target" ) );
+        assertFalse( checkExists( getBasedir() + "/target/test-classes/unit/nested-clean-test/target/classes" ) );
+        assertFalse( checkExists( getBasedir() + "/target/test-classes/unit/nested-clean-test/target/test-classes" ) );
     }
 
-    public void testEmptyDirectories()
+    /**
+     * Tests that no exception is thrown when all internal variables are empty and that it doesn't
+     * just remove whats there
+     *
+     * @throws Exception
+     */
+    public void testCleanEmptyDirectories()
         throws Exception
     {
-        CleanMojo mojo = new CleanMojo();
+        String pluginPom = getBasedir() + "/src/test/resources/unit/empty-clean-test/plugin-pom.xml";
+
+        CleanMojo mojo = (CleanMojo) lookupEmptyMojo( "clean", pluginPom );
+        assertNotNull( mojo );
 
         mojo.execute();
 
-        // just checking no exceptions
-        assertTrue( true );
+        assertTrue( checkExists( getBasedir() + "/target/test-classes/unit/empty-clean-test/testDirectoryStructure" ) );
+        assertTrue( checkExists( getBasedir() + "/target/test-classes/unit/empty-clean-test/"
+            + "testDirectoryStructure/file.txt" ) );
+        assertTrue( checkExists( getBasedir() + "/target/test-classes/unit/empty-clean-test/"
+            + "testDirectoryStructure/outputDirectory" ) );
+        assertTrue( checkExists( getBasedir() + "/target/test-classes/unit/empty-clean-test/"
+            + "testDirectoryStructure/outputDirectory/file.txt" ) );
     }
 
-    public void testFilesets()
+    /**
+     * Tests the removal of files using fileset
+     *
+     * @throws Exception
+     */
+    public void testFilesetsClean()
         throws Exception
     {
-        String base = TARGET_TEST_DIR + "/target";
-
-        CleanMojo mojo = new CleanMojo();
-        MavenProjectStub project = new MavenProjectStub();
-        project.setExecutionRoot( false );
-        setVariableValueToObject( mojo, "project", project );
-        mojo.addFileset( createFileset( base, "**/file.txt", "**/subdir/**" ) );
+        String pluginPom = getBasedir() + "/src/test/resources/unit/fileset-clean-test/plugin-pom.xml";
 
-        String outputDirectory = TARGET_TEST_DIR + "/buildOutputDirectory";
-        mojo.addFileset( createFileset( outputDirectory, "**", "" ) );
+        CleanMojo mojo = (CleanMojo) lookupMojo( "clean", pluginPom );
+        assertNotNull( mojo );
 
         mojo.execute();
 
         // fileset 1
-        assertTrue( checkExists( base ) );
-        assertTrue( checkExists( base + "/classes" ) );
-        assertFalse( checkExists( base + "/classes/file.txt" ) );
-        /* TODO: looks like a bug in the file-management library
-         assertTrue( FileUtils.fileExists( base + "/subdir/file.txt" ) );
-         */
+        assertTrue( checkExists( getBasedir() + "/target/test-classes/unit/fileset-clean-test/target" ) );
+        assertTrue( checkExists( getBasedir() + "/target/test-classes/unit/fileset-clean-test/target/classes" ) );
+        assertFalse( checkExists( getBasedir() + "/target/test-classes/unit/fileset-clean-test/target/test-classes" ) );
+        assertTrue( checkExists( getBasedir() + "/target/test-classes/unit/fileset-clean-test/target/subdir" ) );
+        assertFalse( checkExists( getBasedir() + "/target/test-classes/unit/fileset-clean-test/target/classes/file.txt" ) );
+        assertTrue( checkEmpty( getBasedir() + "/target/test-classes/unit/fileset-clean-test/target/classes" ) );
+        assertTrue( checkEmpty( getBasedir() + "/target/test-classes/unit/fileset-clean-test/target/subdir" ) );
 
         // fileset 2
-        assertTrue( checkExists( outputDirectory ) );
-        assertFalse( checkExists( outputDirectory + "/file.txt" ) );
+        //TODO: MCLEAN-7
+        assertTrue( checkExists( getBasedir() + "/target/test-classes/unit/fileset-clean-test/"
+            + "buildOutputDirectory" ) );
+        assertFalse( checkExists( getBasedir() + "/target/test-classes/fileset-clean-test/"
+            + "buildOutputDirectory/file.txt" ) );
     }
 
-    public void testInvalidDirectory()
-        throws MojoExecutionException
+    /**
+     * Tests the removal of a directory as file
+     *
+     * @throws Exception
+     */
+    public void testCleanInvalidDirectory()
+        throws Exception
     {
-        String path = TARGET_TEST_DIR + "/target/subdir/file.txt";
+        String pluginPom = getBasedir() + "/src/test/resources/unit/invalid-directory-test/plugin-pom.xml";
 
-        CleanMojo mojo = new CleanMojo();
-        mojo.setDirectory( new File( basedir, path ) );
+        CleanMojo mojo = (CleanMojo) lookupMojo( "clean", pluginPom );
+        assertNotNull( mojo );
 
         try
         {
@@ -166,81 +176,126 @@
         }
     }
 
-    /* Unix will let you get away with it, not sure how to lock the file from Java.
-     public void testOpenFile()
-     throws MojoExecutionException, FileNotFoundException
-     {
-     String path = TARGET_TEST_DIR + "/target/subdir";
-
-     CleanMojo mojo = new CleanMojo();
-     mojo.setDirectory( new File( basedir, path ) );
-
-     FileInputStream fis = new FileInputStream( new File( basedir, path + "/file.txt" ) );
-
-     try
-     {
-     mojo.execute();
-
-     fail( "Should fail to delete a file that is open" );
-     }
-     catch ( MojoExecutionException expected )
-     {
-     assertTrue( true );
-     }
-     finally
-     {
-     IOUtil.close( fis );
-     }
-     }
-
-     public void testOpenFileInFileSet()
-     throws MojoExecutionException, FileNotFoundException
-     {
-     String path = TARGET_TEST_DIR + "/target/subdir";
-
-     CleanMojo mojo = new CleanMojo();
-     mojo.addFileset( createFileset( path, "**", "" ) );
-
-     FileInputStream fis = new FileInputStream( new File( basedir, path + "/file.txt" ) );
-
-     try
-     {
-     mojo.execute();
-
-     fail( "Should fail to delete a file that is open" );
-     }
-     catch ( MojoExecutionException expected )
-     {
-     assertTrue( true );
-     }
-     finally
-     {
-     IOUtil.close( fis );
-     }
-     }
+    /**
+     * Tests the removal of a missing directory
+     *
+     * @throws Exception
      */
-
     public void testMissingDirectory()
-        throws MojoExecutionException
+        throws Exception
     {
-        String path = TARGET_TEST_DIR + "/does-not-exist";
+        String pluginPom = getBasedir() + "/src/test/resources/unit/missing-directory-test/plugin-pom.xml";
 
-        CleanMojo mojo = new CleanMojo();
-        mojo.setDirectory( new File( basedir, path ) );
-        assertFalse( checkExists( path ) );
+        CleanMojo mojo = (CleanMojo) lookupMojo( "clean", pluginPom );
+        assertNotNull( mojo );
 
         mojo.execute();
 
-        assertFalse( checkExists( path ) );
+        assertFalse( checkExists( getBasedir() + "/target/test-classes/unit/missing-directory-test/does-not-exist" ) );
     }
 
-    private Fileset createFileset( String dir, String includes, String excludes )
+    /**
+     * Test the removal of a locked file
+     *
+     * @throws Exception
+     */
+    public void testCleanLockedFile()
+        throws Exception
     {
-        Fileset fileset = new Fileset();
-        fileset.setDirectory( new File( basedir, dir ).getAbsolutePath() );
-        fileset.setIncludes( Arrays.asList( new String[] { includes } ) );
-        fileset.setExcludes( Arrays.asList( new String[] { excludes } ) );
-        return fileset;
+        String pluginPom = getBasedir() + "/src/test/resources/unit/locked-file-test/plugin-pom.xml";
+
+        CleanMojo mojo = (CleanMojo) lookupMojo( "clean", pluginPom );
+        assertNotNull( mojo );
+
+        File f = new File( getBasedir(), "target/test-classes/unit/locked-file-test/buildDirectory/file.txt" );
+        FileChannel channel = null;
+        FileLock lock = null;
+        try
+        {
+            channel = new RandomAccessFile( f, "rw" ).getChannel();
+            lock = channel.lock();
+
+            mojo.execute();
+
+            fail( "Should fail to delete a file that is locked" );
+        }
+        catch ( MojoExecutionException expected )
+        {
+            assertTrue( true );
+        }
+        finally
+        {
+            if ( lock != null )
+            {
+                lock.release();
+            }
+
+            if ( channel != null )
+            {
+                channel.close();
+            }
+        }
+    }
+
+    /**
+     * Test the removal of a locked file
+     *
+     * @throws Exception
+     */
+    public void testCleanLockedFileWithNoError()
+        throws Exception
+    {
+        String pluginPom = getBasedir() + "/src/test/resources/unit/locked-file-test/plugin-pom.xml";
+
+        CleanMojo mojo = (CleanMojo) lookupMojo( "clean", pluginPom );
+        setVariableValueToObject( mojo, "ignoreErrors", Boolean.TRUE );
+        assertNotNull( mojo );
+
+        File f = new File( getBasedir(), "target/test-classes/unit/locked-file-test/buildDirectory/file.txt" );
+        FileChannel channel = null;
+        FileLock lock = null;
+        try
+        {
+            channel = new RandomAccessFile( f, "rw" ).getChannel();
+            lock = channel.lock();
+
+            mojo.execute();
+
+            assertTrue( true );
+        }
+        catch ( MojoExecutionException expected )
+        {
+            fail( "Should display a warning when deleting a file that is locked" );
+        }
+        finally
+        {
+            if ( lock != null )
+            {
+                lock.release();
+            }
+
+            if ( channel != null )
+            {
+                channel.close();
+            }
+        }
     }
 
+    /**
+     * @param dir a dir or a file
+     * @return true if a file/dir exists, false otherwise
+     */
+    private boolean checkExists( String dir )
+    {
+        return FileUtils.fileExists( new File( dir ).getAbsolutePath() );
+    }
+
+    /**
+     * @param dir a directory
+     * @return true if a dir is empty, false otherwise
+     */
+    private boolean checkEmpty( String dir )
+    {
+        return FileUtils.sizeOfDirectory( new File( dir ).getAbsolutePath() ) == 0;
+    }
 }

Added: maven/plugins/trunk/maven-clean-plugin/src/test/java/org/apache/maven/plugin/clean/stubs/CleanProjectStub.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/java/org/apache/maven/plugin/clean/stubs/CleanProjectStub.java?rev=595285&view=auto
==============================================================================
--- maven/plugins/trunk/maven-clean-plugin/src/test/java/org/apache/maven/plugin/clean/stubs/CleanProjectStub.java (added)
+++ maven/plugins/trunk/maven-clean-plugin/src/test/java/org/apache/maven/plugin/clean/stubs/CleanProjectStub.java Thu Nov 15 04:15:57 2007
@@ -0,0 +1,33 @@
+package org.apache.maven.plugin.clean.stubs;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
+
+/**
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ */
+public class CleanProjectStub
+    extends MavenProjectStub
+{
+    // nop
+}
+

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/java/org/apache/maven/plugin/clean/stubs/CleanProjectStub.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/java/org/apache/maven/plugin/clean/stubs/CleanProjectStub.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildDirectory/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildDirectory/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildDirectory/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildDirectory/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildOutputDirectory/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildOutputDirectory/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildOutputDirectory/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildOutputDirectory/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildTestDirectory/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildTestDirectory/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildTestDirectory/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/buildTestDirectory/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/plugin-pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/plugin-pom.xml?rev=595285&view=auto
==============================================================================
--- maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/plugin-pom.xml (added)
+++ maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/plugin-pom.xml Thu Nov 15 04:15:57 2007
@@ -0,0 +1,34 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<project>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-clean-plugin</artifactId>
+        <configuration>
+          <project implementation="org.apache.maven.plugin.clean.stubs.CleanProjectStub"/>
+          <directory>${basedir}/target/test-classes/unit/basic-clean-test/buildDirectory</directory>
+          <outputDirectory>${basedir}/target/test-classes/unit/basic-clean-test/buildOutputDirectory</outputDirectory>
+          <testOutputDirectory>${basedir}/target/test-classes/unit/basic-clean-test/buildTestDirectory</testOutputDirectory>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/basic-clean-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/plugin-pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/plugin-pom.xml?rev=595285&view=auto
==============================================================================
--- maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/plugin-pom.xml (added)
+++ maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/plugin-pom.xml Thu Nov 15 04:15:57 2007
@@ -0,0 +1,31 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<project>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-clean-plugin</artifactId>
+        <configuration>
+          <project implementation="org.apache.maven.plugin.clean.stubs.CleanProjectStub"/>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/testDirectoryStructure/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/testDirectoryStructure/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/testDirectoryStructure/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/testDirectoryStructure/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/testDirectoryStructure/outputDirectory/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/testDirectoryStructure/outputDirectory/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/testDirectoryStructure/outputDirectory/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/empty-clean-test/testDirectoryStructure/outputDirectory/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/buildOutputDirectory/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/buildOutputDirectory/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/buildOutputDirectory/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/buildOutputDirectory/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/plugin-pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/plugin-pom.xml?rev=595285&view=auto
==============================================================================
--- maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/plugin-pom.xml (added)
+++ maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/plugin-pom.xml Thu Nov 15 04:15:57 2007
@@ -0,0 +1,53 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<project>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-clean-plugin</artifactId>
+        <configuration>
+          <project implementation="org.apache.maven.plugin.clean.stubs.CleanProjectStub"/>
+          <filesets>
+            <fileset>
+              <directory>${basedir}/target/test-classes/unit/fileset-clean-test/target</directory>
+              <includes>
+                <include>**/file.txt</include>
+                <include>**/test-classes/**</include>
+              </includes>
+              <excludes>
+                <exclude>**/subdir/**</exclude>
+              </excludes>
+            </fileset>
+            <fileset>
+              <directory>${basedir}/target/test-classes/unit/fileset-clean-test/buildOutputDirectory</directory>
+              <includes>
+                <include>**</include>
+              </includes>
+              <excludes>
+                <exclude>**</exclude>
+              </excludes>
+            </fileset>
+          </filesets>
+          <verbose>true</verbose>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/classes/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/classes/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/classes/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/classes/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/subdir/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/subdir/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/subdir/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/subdir/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/test-classes/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/test-classes/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/test-classes/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/fileset-clean-test/target/test-classes/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/invalid-directory-test/plugin-pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/invalid-directory-test/plugin-pom.xml?rev=595285&view=auto
==============================================================================
--- maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/invalid-directory-test/plugin-pom.xml (added)
+++ maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/invalid-directory-test/plugin-pom.xml Thu Nov 15 04:15:57 2007
@@ -0,0 +1,32 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<project>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-clean-plugin</artifactId>
+        <configuration>
+          <project implementation="org.apache.maven.plugin.clean.stubs.CleanProjectStub"/>
+          <directory>${basedir}/target/test-classes/unit/invalid-directory-test/this-is-a-file</directory>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/invalid-directory-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/invalid-directory-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/invalid-directory-test/this-is-a-file
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/invalid-directory-test/this-is-a-file?rev=595285&view=auto
==============================================================================
    (empty)

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/locked-file-test/buildDirectory/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/locked-file-test/buildDirectory/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/locked-file-test/buildDirectory/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/locked-file-test/buildDirectory/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/locked-file-test/plugin-pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/locked-file-test/plugin-pom.xml?rev=595285&view=auto
==============================================================================
--- maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/locked-file-test/plugin-pom.xml (added)
+++ maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/locked-file-test/plugin-pom.xml Thu Nov 15 04:15:57 2007
@@ -0,0 +1,32 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<project>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-clean-plugin</artifactId>
+        <configuration>
+          <project implementation="org.apache.maven.plugin.clean.stubs.CleanProjectStub"/>
+          <directory>${basedir}/target/test-classes/unit/locked-file-test/buildDirectory</directory>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/locked-file-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/locked-file-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/missing-directory-test/plugin-pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/missing-directory-test/plugin-pom.xml?rev=595285&view=auto
==============================================================================
--- maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/missing-directory-test/plugin-pom.xml (added)
+++ maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/missing-directory-test/plugin-pom.xml Thu Nov 15 04:15:57 2007
@@ -0,0 +1,32 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<project>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-clean-plugin</artifactId>
+        <configuration>
+          <project implementation="org.apache.maven.plugin.clean.stubs.CleanProjectStub"/>
+          <directory>${basedir}/target/test-classes/unit/missing-clean-test/does-not-exist</directory>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/missing-directory-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/missing-directory-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/plugin-pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/plugin-pom.xml?rev=595285&view=auto
==============================================================================
--- maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/plugin-pom.xml (added)
+++ maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/plugin-pom.xml Thu Nov 15 04:15:57 2007
@@ -0,0 +1,34 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<project>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-clean-plugin</artifactId>
+        <configuration>
+          <project implementation="org.apache.maven.plugin.clean.stubs.CleanProjectStub"/>
+          <directory>${basedir}/target/test-classes/unit/nested-clean-test/target</directory>
+          <outputDirectory>${basedir}/target/test-classes/unit/nested-clean-test/target/classes</outputDirectory>
+          <testOutputDirectory>${basedir}/target/test-classes/unit/nested-clean-test/target/test-classes</testOutputDirectory>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/classes/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/classes/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/classes/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/classes/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/subdir/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/subdir/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/subdir/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/subdir/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/test-classes/file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/test-classes/file.txt?rev=595285&view=auto
==============================================================================
    (empty)

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/test-classes/file.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clean-plugin/src/test/resources/unit/nested-clean-test/target/test-classes/file.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"