MPECLIPSE-60: a couple of changes following Arnaud's comment.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@369028 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
snicoll committed 2006-01-14 15:13:44 +00:00
1 parent 0168a8e3b0
commit 7706d0e0e3
3 files changed
+15 -9

No files matched your search

@@ -1,4 +1,4 @@
package org.apache.maven.eclipse;
package org.apache.maven.plugin.eclipse;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
@@ -39,6 +39,9 @@ import java.util.Iterator;
public class JavaSourcesDownloader
extends AbstractMavenComponent
{
private static final String PROXY_LOGINHOST = "maven.proxy.ntlm.host";
private static final String PROXY_LOGINDOMAIN = "maven.proxy.ntlm.domain";
private static final Log log = LogFactory.getLog( JavaSourcesDownloader.class );
private Project project;
@@ -213,13 +216,8 @@ public class JavaSourcesDownloader
// of the checksum file was successful.
try
{
String loginHost = (String) getProject().getContext().getVariable( MavenConstants.PROXY_LOGINHOST );
String loginDomain = (String) getProject().getContext().getVariable( MavenConstants.PROXY_LOGINDOMAIN );
String meterType = (String) getProject().getContext().getVariable( MavenConstants.DOWNLOAD_METER );
if ( meterType != null )
{
HttpUtils.setMeterType( meterType );
}
String loginHost = (String) getProject().getContext().getVariable( PROXY_LOGINHOST );
String loginDomain = (String) getProject().getContext().getVariable( PROXY_LOGINDOMAIN );
HttpUtils.getFile( url, destinationFile, false, true, getProject().getContext().getProxyHost(),
getProject().getContext().getProxyPort(),
getProject().getContext().getProxyUserName(),