continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r312588 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Mon, 10 Oct 2005 09:00:42 GMT
Author: evenisse
Date: Mon Oct 10 02:00:39 2005
New Revision: 312588

URL: http://svn.apache.org/viewcvs?rev=312588&view=rev
Log:
Delete project working directory when user delete a project

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?rev=312588&r1=312587&r2=312588&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Mon Oct 10 02:00:39 2005
@@ -196,10 +196,18 @@
         try
         {
             store.removeProject( store.getProject( projectId ) );
+
+            File workingDirectory = getWorkingDirectory( projectId );
+
+            FileUtils.deleteDirectory( workingDirectory );
         }
         catch ( ContinuumStoreException ex )
         {
-            throw logAndCreateException( "Error while removing project.", ex );
+            throw logAndCreateException( "Error while removing project in database.", ex
);
+        }
+        catch ( IOException e )
+        {
+            throw logAndCreateException( "Error while deleting project working directory.",
e );
         }
     }
 



Mime
View raw message