You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2018/04/23 22:24:40 UTC

[maven-site-plugin] branch master updated: [MSITE-812] append slash only if necessary

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-site-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 348b9fc  [MSITE-812] append slash only if necessary
348b9fc is described below

commit 348b9fcc58e5fc4a42691ca2ecd49201a055e4d3
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Tue Apr 24 00:24:38 2018 +0200

    [MSITE-812] append slash only if necessary
---
 .../org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java b/src/main/java/org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java
index 27c918d..528f714 100644
--- a/src/main/java/org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java
+++ b/src/main/java/org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java
@@ -447,13 +447,14 @@ public abstract class AbstractDeployMojo
                 {
                     // TODO: this also uploads the non-default locales,
                     // is there a way to exclude directories in wagon?
-                    getLog().info( "   >>> to " + repository.getUrl() + "/" + relativeDir );
+                    getLog().info( "   >>> to " + appendSlash( repository.getUrl() ) + relativeDir );
 
                     wagon.putDirectory( inputDirectory, relativeDir );
                 }
                 else
                 {
-                    getLog().info( "   >>> to " + repository.getUrl() + locale.getLanguage() + "/" + relativeDir );
+                    getLog().info( "   >>> to " + appendSlash( repository.getUrl() ) + locale.getLanguage() + "/"
+                        + relativeDir );
 
                     wagon.putDirectory( new File( inputDirectory, locale.getLanguage() ),
                                         locale.getLanguage() + "/" + relativeDir );

-- 
To stop receiving notification emails like this one, please contact
hboutemy@apache.org.