maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1796002 - /maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/site/DistCheckSiteMojo.java
Date Wed, 24 May 2017 06:41:55 GMT
Author: hboutemy
Date: Wed May 24 06:41:55 2017
New Revision: 1796002

URL: http://svn.apache.org/viewvc?rev=1796002&view=rev
Log:
support https://maven.apache.org in addition to http://

Modified:
    maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/site/DistCheckSiteMojo.java

Modified: maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/site/DistCheckSiteMojo.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/site/DistCheckSiteMojo.java?rev=1796002&r1=1796001&r2=1796002&view=diff
==============================================================================
--- maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/site/DistCheckSiteMojo.java
(original)
+++ maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/site/DistCheckSiteMojo.java
Wed May 24 06:41:55 2017
@@ -87,8 +87,6 @@ public class DistCheckSiteMojo
     @Parameter( property = "screenshot", defaultValue = "false" )
     protected boolean screenShot;
     
-    private static final String MAVEN_SITE = "http://maven.apache.org";
-
     /**
      * Http status ok code.
      */
@@ -256,7 +254,7 @@ public class DistCheckSiteMojo
 
     private String getSimplifiedUrl( String url )
     {
-        return url.replace( MAVEN_SITE, "http://m.a.o" );
+        return url.replace( "://maven.apache.org", "://m.a.o" );
     }
 
     private void checkSite( ConfigurationLineInfo cli, String version )



Mime
View raw message