]> source.dussan.org Git - poi.git/commitdiff
Adjust some more places to use https instead of http, need a workaround for a bug...
authorDominik Stadler <centic@apache.org>
Sun, 8 Mar 2020 20:17:11 +0000 (20:17 +0000)
committerDominik Stadler <centic@apache.org>
Sun, 8 Mar 2020 20:17:11 +0000 (20:17 +0000)
See comment in build.xml for why this replacement is needed.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874982 13f79535-47bb-0310-9956-ffa450edef68

build.xml
jenkins/create_jobs.groovy

index 0b7a990068a0b90f64ee7d2caa1a57d621b1dd94..360408d96955d54216a49ed98a89c4fd02b7b452 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1782,6 +1782,26 @@ under the License.
         <echo>Broken links:</echo>
         <echo file="${build.site}/../tmp/brokenlinks.xml"/>
 
+        <!-- Apache Forrest is dead, so we cannot expect fixes there
+            however it does not handle "https" in "credits" currently
+            if the *.xml file is in a sub-directory, see Apache Forrest
+            code at main/webapp/skins/pelt/xslt/html/site-to-xhtml.xsl:350
+
+            So we need to replace the links afterwards to have a fully "https"
+            website and avoid browser warning about a "mixed content"
+            website -->
+        <echo>Fix https in ${build.site}</echo>
+        <replace dir="${build.site}"
+            token="http://www.apache.org/events/current-event-125x125.png"
+            value="https://www.apache.org/events/current-event-125x125.png"
+            summary="true"
+            includes="**/*.html"/>
+        <replace dir="${build.site}"
+            token="http://www.google.com/search"
+            value="https://www.google.com/search"
+            summary="true"
+            includes="**/*.html"/>
+
         <fixcrlf srcdir="${build.site}" includes="**/*.html,**/*.css" eol="unix" eof="remove" />
 
         <touch>
index 062cba1e6d3f190b42fbd6ab71ce7a3a50524ae8..40dcb9ea1370fc780182a0e7ababc46cbbaa927a 100644 (file)
@@ -2,7 +2,7 @@
 // Apache POI uses on the public Jenkins instance at https://builds.apache.org/view/P/view/POI/
 //
 // See https://github.com/jenkinsci/job-dsl-plugin/wiki for information about the DSL, you can
-// use http://job-dsl.herokuapp.com/ to validate the code before checkin
+// use https://job-dsl.herokuapp.com/ to validate the code before checkin
 //
 
 def triggerSundays = '''
@@ -255,7 +255,7 @@ poijobs.each { poijob ->
             } else {
                 svn(svnBase) { svnNode ->
                     svnNode / browser(class: 'hudson.scm.browsers.ViewSVN') /
-                            url << 'http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN'
+                            url << 'https://svn.apache.org/viewcvs.cgi/?root=Apache-SVN'
                 }
             }
         }
@@ -506,7 +506,7 @@ xmlbeansjobs.each { xjob ->
         scm {
             svn(xmlbeansSvnBase) { svnNode ->
                 svnNode / browser(class: 'hudson.scm.browsers.ViewSVN') /
-                        url << 'http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN'
+                        url << 'https://svn.apache.org/viewcvs.cgi/?root=Apache-SVN'
             }
         }
         checkoutRetryCount(3)