You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by at...@apache.org on 2008/07/18 21:32:00 UTC

svn commit: r678007 - /portals/jetspeed-2/portal/trunk/maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java

Author: ate
Date: Fri Jul 18 12:31:59 2008
New Revision: 678007

URL: http://svn.apache.org/viewvc?rev=678007&view=rev
Log:
Small fix for the Deploy plugin for expanded war deployment to ensure the original target folder is first removed 

Modified:
    portals/jetspeed-2/portal/trunk/maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java

Modified: portals/jetspeed-2/portal/trunk/maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java?rev=678007&r1=678006&r2=678007&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java (original)
+++ portals/jetspeed-2/portal/trunk/maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java Fri Jul 18 12:31:59 2008
@@ -432,6 +432,10 @@
             {
                 try
                 {
+                    if (target.exists() && !rmdir(target))
+                    {
+                        throw new MojoExecutionException("Failed to delete directory "+ target.getAbsolutePath());
+                    }
                     expandWar(dobj.src, target);
                 }
                 catch (IOException e)



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org