You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2010/04/07 22:53:16 UTC

svn commit: r931683 - /maven/archetype/trunk/archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java

Author: hboutemy
Date: Wed Apr  7 20:53:16 2010
New Revision: 931683

URL: http://svn.apache.org/viewvc?rev=931683&view=rev
Log:
delete the directory generated by the archetype test to be able to re-run it without mvn clean

Modified:
    maven/archetype/trunk/archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java

Modified: maven/archetype/trunk/archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java?rev=931683&r1=931682&r2=931683&view=diff
==============================================================================
--- maven/archetype/trunk/archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java (original)
+++ maven/archetype/trunk/archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java Wed Apr  7 20:53:16 2010
@@ -204,6 +204,8 @@ public class IntegrationTestMojo
 
             String basedir = goalFile.getParentFile().getPath() + "/project";
 
+            FileUtils.deleteDirectory( basedir );
+
             FileUtils.mkdir( basedir );
 
             ArchetypeGenerationRequest request = new ArchetypeGenerationRequest()