From 92fb6285ebbfad8ae099fbadee918d7073cbdb77 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Fri, 24 Jun 2005 02:04:18 +0000 Subject: [PATCH] put the site mojo back how it was. deployment was silently failing git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@201544 13f79535-47bb-0310-9956-ffa450edef68 --- maven-plugins/maven-site-plugin/pom.xml | 2 +- .../main/java/org/apache/maven/doxia/ScpSiteDeployMojo.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/maven-plugins/maven-site-plugin/pom.xml b/maven-plugins/maven-site-plugin/pom.xml index 26841084c8..bd9a4b05ac 100644 --- a/maven-plugins/maven-site-plugin/pom.xml +++ b/maven-plugins/maven-site-plugin/pom.xml @@ -6,7 +6,7 @@ 2.0-alpha-3 maven-site-plugin - 2.0-alpha-2 + 2.0-alpha-3-SNAPSHOT maven-plugin Maven Site plugin diff --git a/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/ScpSiteDeployMojo.java b/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/ScpSiteDeployMojo.java index 5423279a68..5872904f02 100644 --- a/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/ScpSiteDeployMojo.java +++ b/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/ScpSiteDeployMojo.java @@ -139,9 +139,11 @@ public class ScpSiteDeployMojo commandExecutor.put( zipFile, zipFile.getName() ); - cmd = " cd " + basedir + ";" + unzipCommand + " " + zipFile.getName() + "; rm " + basedir + "/" + zipFile.getName(); + cmd = " cd " + basedir + ";" + unzipCommand + " " + zipFile.getName(); commandExecutor.executeCommand( cmd ); + + commandExecutor.executeCommand( "rm -f " + basedir + "/" + zipFile.getName() ); } catch ( Exception e ) {