You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by bw...@apache.org on 2003/04/17 15:07:04 UTC
cvs commit: maven/src/plugins-build/linkcheck/src/main/org/apache/maven/linkcheck/validation HTTPLinkValidator.java
bwalding 2003/04/17 06:07:03
Modified: src/plugins-build/linkcheck/src/main/org/apache/maven/linkcheck/validation
HTTPLinkValidator.java
Log:
Additional logging now visible. HostConfiguration object wasn't being set on the http client
PR: MAVEN-402
Revision Changes Path
1.7 +9 -8 maven/src/plugins-build/linkcheck/src/main/org/apache/maven/linkcheck/validation/HTTPLinkValidator.java
Index: HTTPLinkValidator.java
===================================================================
RCS file: /home/cvs/maven/src/plugins-build/linkcheck/src/main/org/apache/maven/linkcheck/validation/HTTPLinkValidator.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- HTTPLinkValidator.java 10 Mar 2003 14:20:21 -0000 1.6
+++ HTTPLinkValidator.java 17 Apr 2003 13:07:03 -0000 1.7
@@ -92,18 +92,18 @@
if (proxyHost == null)
{
proxy = false;
- LOG.debug("Not using a proxy");
+ System.out.println("maven-linkcheck-plugin: Not using a proxy");
}
else
{
proxy = true;
this.proxyHost = proxyHost;
- this.proxyPass = proxyPass;
- this.proxyUser = proxyUser;
this.proxyPort = Integer.parseInt(proxyPort);
- LOG.debug("Using Proxy Host:" + proxyHost);
- LOG.debug("Using Proxy Port:" + proxyPort);
- LOG.debug("Using Proxy User:" + proxyUser);
+ this.proxyUser = proxyUser;
+ this.proxyPass = proxyPass;
+ System.out.println("maven-linkcheck-plugin: Proxy Host:" + proxyHost);
+ System.out.println("maven-linkcheck-plugin: Proxy Port:" + proxyPort);
+ System.out.println("maven-linkcheck-plugin: Proxy User:" + proxyUser);
}
}
@@ -125,13 +125,14 @@
hc.setProxy(proxyHost, proxyPort);
}
HttpState state = new HttpState();
-
+
if (proxyUser != null && proxyPass != null)
{
state.setProxyCredentials(null, new UsernamePasswordCredentials(proxyUser, proxyPass));
}
GetMethod get = new GetMethod(link);
+ cl.setHostConfiguration(hc);
cl.setState(state);
get.setFollowRedirects(true);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org