maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r917322 - /maven/plugins/trunk/maven-linkcheck-plugin/src/main/java/org/apache/maven/plugins/linkcheck/LinkcheckReport.java
Date Sun, 28 Feb 2010 23:22:06 GMT
Author: brett
Date: Sun Feb 28 23:22:06 2010
New Revision: 917322

URL: http://svn.apache.org/viewvc?rev=917322&view=rev
Log:
add baseURL argument for absolute links

Modified:
    maven/plugins/trunk/maven-linkcheck-plugin/src/main/java/org/apache/maven/plugins/linkcheck/LinkcheckReport.java

Modified: maven/plugins/trunk/maven-linkcheck-plugin/src/main/java/org/apache/maven/plugins/linkcheck/LinkcheckReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-linkcheck-plugin/src/main/java/org/apache/maven/plugins/linkcheck/LinkcheckReport.java?rev=917322&r1=917321&r2=917322&view=diff
==============================================================================
--- maven/plugins/trunk/maven-linkcheck-plugin/src/main/java/org/apache/maven/plugins/linkcheck/LinkcheckReport.java
(original)
+++ maven/plugins/trunk/maven-linkcheck-plugin/src/main/java/org/apache/maven/plugins/linkcheck/LinkcheckReport.java
Sun Feb 28 23:22:06 2010
@@ -284,6 +284,13 @@
      */
     private boolean forceSite;
 
+    /**
+     * The base URL to use for absolute links (eg <code>/index.html</code>) in
the site.
+     *
+     * @parameter expression="${linkcheck.baseURL}" default-value="${project.url}"
+     */
+    private String baseURL;
+
     // ----------------------------------------------------------------------
     // Instance fields
     // ----------------------------------------------------------------------
@@ -473,6 +480,7 @@
         // Wrap linkcheck
         linkCheck.setOnline( !offline );
         linkCheck.setBasedir( basedir );
+        linkCheck.setBaseURL( baseURL );
         linkCheck.setReportOutput( linkcheckOutput );
         linkCheck.setLinkCheckCache( linkcheckCache );
         linkCheck.setExcludedLinks( excludedLinks );
@@ -1414,4 +1422,4 @@
 
         return buf.toString();
     }
-}
\ No newline at end of file
+}



Mime
View raw message