portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r678007 - /portals/jetspeed-2/portal/trunk/maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java
Date Fri, 18 Jul 2008 19:32:00 GMT
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


Mime
View raw message