From d4af37ae669134d397012f844aa0c41e922f9277 Mon Sep 17 00:00:00 2001 From: Emmanuel Venisse Date: Tue, 5 Jul 2005 11:46:05 +0000 Subject: [PATCH] Fix path to remote zip file git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@209258 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/doxia/ScpSiteDeployMojo.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 5872904f02..e910b8f721 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 @@ -143,7 +143,12 @@ public class ScpSiteDeployMojo commandExecutor.executeCommand( cmd ); - commandExecutor.executeCommand( "rm -f " + basedir + "/" + zipFile.getName() ); + if ( !basedir.endsWith( "/" ) ) + { + basedir = basedir + "/"; + } + + commandExecutor.executeCommand( "rm -f " + basedir + zipFile.getName() ); } catch ( Exception e ) {