You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2002/12/10 03:19:40 UTC
cvs commit: jakarta-turbine-maven/src/bootstrap/org/apache/maven BootstrapTask.java
jvanzyl 2002/12/09 18:19:40
Modified: src/bootstrap/org/apache/maven BootstrapTask.java
Log:
o Updating use of HttpUtils.
Revision Changes Path
1.9 +9 -36 jakarta-turbine-maven/src/bootstrap/org/apache/maven/BootstrapTask.java
Index: BootstrapTask.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/bootstrap/org/apache/maven/BootstrapTask.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- BootstrapTask.java 3 Dec 2002 02:50:57 -0000 1.8
+++ BootstrapTask.java 10 Dec 2002 02:19:40 -0000 1.9
@@ -101,16 +101,6 @@
private boolean ignoreErrors = true;
/**
- * user name used in basic authentication
- */
- private String uname = null;
-
- /**
- * password used in basic authentication
- */
- private String pword = null;
-
- /**
* A URL that the files are relative to
*/
private String baseUrl;
@@ -294,28 +284,6 @@
}
/**
- * Username for basic auth.
- *
- * @param u username for authentication
- */
- public void setUsername(String u)
- {
- this.uname = u;
- }
-
- /**
- * password for the basic auth.
- *
- * @param p password for authentication
- */
- public void setPassword(String p)
- {
- this.pword = p;
- }
-
- // http
-
- /**
* Does the work.
*
* @exception BuildException Thrown in unrecoverable error.
@@ -394,10 +362,15 @@
URL source = new URL(baseUrl + file);
- HttpUtils.getFile(source, destinationFile, file,
- ignoreErrors, useTimestamp, uname, pword,
- proxyHost, proxyPort, proxyUserName,
- proxyPassword);
+ HttpUtils.getFile( source,
+ destinationFile,
+ file,
+ ignoreErrors,
+ useTimestamp,
+ proxyHost,
+ proxyPort,
+ proxyUserName,
+ proxyPassword);
}
catch (Exception e)
{