maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r743076 - /maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteStageDeployMojo.java
Date Tue, 10 Feb 2009 19:43:08 GMT
Author: dennisl
Date: Tue Feb 10 19:43:08 2009
New Revision: 743076

URL: http://svn.apache.org/viewvc?rev=743076&view=rev
Log:
[MSITE-384] site:stage-deploy fails on Windows for projects with 3 levels of modules

Modified:
    maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteStageDeployMojo.java

Modified: maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteStageDeployMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteStageDeployMojo.java?rev=743076&r1=743075&r2=743076&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteStageDeployMojo.java
(original)
+++ maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteStageDeployMojo.java
Tue Feb 10 19:43:08 2009
@@ -238,6 +238,9 @@
             // Find the relative path between the parent and child distribution URLs, if
any
             relative = "/" + siteTool.getRelativePath( currentProject.getDistributionManagement().getSite().getUrl(),
                                                        topLevelProject.getDistributionManagement().getSite().getUrl()
);
+            // SiteTool.getRelativePath() uses File.separatorChar, so we need to convert
'\' to '/' in order for the URL
+            // to be valid for Windows users
+            relative = relative.replace( '\\', '/' );
 
             if ( topLevelURL == null )
             {



Mime
View raw message