maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r709703 - /maven/plugins/trunk/maven-linkcheck-plugin/src/main/java/org/apache/maven/plugins/linkcheck/LinkcheckReport.java
Date Sat, 01 Nov 2008 14:39:51 GMT
Author: vsiveton
Date: Sat Nov  1 07:39:51 2008
New Revision: 709703

URL: http://svn.apache.org/viewvc?rev=709703&view=rev
Log:
o using the linkCheck component

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=709703&r1=709702&r2=709703&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
Sat Nov  1 07:39:51 2008
@@ -34,7 +34,6 @@
 import org.apache.commons.httpclient.HttpStatus;
 import org.apache.maven.artifact.Artifact;
 import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.doxia.linkcheck.DefaultLinkCheck;
 import org.apache.maven.doxia.linkcheck.HttpBean;
 import org.apache.maven.doxia.linkcheck.LinkCheck;
 import org.apache.maven.doxia.linkcheck.LinkCheckException;
@@ -421,16 +420,15 @@
         throws SiteToolException, LinkCheckException
     {
         // Wrap linkcheck
-        LinkCheck lc = new DefaultLinkCheck();
-        lc.setOnline( !offline );
-        lc.setBasedir( outputDirectory );
-        lc.setReportOutput( new File( linkcheckOutput ) );
-        lc.setLinkCheckCache( new File( linkcheckCache ) );
-        lc.setExcludedLinks( getExcludedLinks( locale ) );
-        lc.setExcludedPages( getExcludedPages() );
-        lc.setExcludedHttpStatusErrors( excludedHttpStatusErrors );
-        lc.setExcludedHttpStatusWarnings( excludedHttpStatusWarnings );
-        lc.setEncoding( ( StringUtils.isNotEmpty( encoding ) ? encoding : WriterFactory.UTF_8
) );
+        linkCheck.setOnline( !offline );
+        linkCheck.setBasedir( outputDirectory );
+        linkCheck.setReportOutput( new File( linkcheckOutput ) );
+        linkCheck.setLinkCheckCache( new File( linkcheckCache ) );
+        linkCheck.setExcludedLinks( getExcludedLinks( locale ) );
+        linkCheck.setExcludedPages( getExcludedPages() );
+        linkCheck.setExcludedHttpStatusErrors( excludedHttpStatusErrors );
+        linkCheck.setExcludedHttpStatusWarnings( excludedHttpStatusWarnings );
+        linkCheck.setEncoding( ( StringUtils.isNotEmpty( encoding ) ? encoding : WriterFactory.UTF_8
) );
 
         HttpBean bean = new HttpBean();
         bean.setMethod( httpMethod );
@@ -444,9 +442,9 @@
             bean.setProxyUser( proxy.getUsername() );
             bean.setProxyPassword( proxy.getPassword() );
         }
-        lc.setHttp( bean );
+        linkCheck.setHttp( bean );
 
-        return lc.execute();
+        return linkCheck.execute();
     }
 
     private String[] getExcludedLinks( Locale locale )



Mime
View raw message