maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r697421 - /maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java
Date Sat, 20 Sep 2008 21:13:45 GMT
Author: bentmann
Date: Sat Sep 20 14:13:45 2008
New Revision: 697421

URL: http://svn.apache.org/viewvc?rev=697421&view=rev
Log:
[MSHARED-75] Add convenience method to clean (target) directory

Modified:
    maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java

Modified: maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java?rev=697421&r1=697420&r2=697421&view=diff
==============================================================================
--- maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java (original)
+++ maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java Sat
Sep 20 14:13:45 2008
@@ -669,6 +669,19 @@
         }
     }
 
+    /**
+     * Deletes the specified directory.
+     * 
+     * @param path The path to the directory to delete, relative to the base directory, must
not be <code>null</code>.
+     * @throws IOException If the directory could not be deleted.
+     * @since 1.2
+     */
+    public void deleteDirectory( String path )
+        throws IOException
+    {
+        FileUtils.deleteDirectory( new File( getBasedir(), path ) );
+    }
+
     public void assertFilePresent( String file )
     {
         try



Mime
View raw message