From ee9c04c4a7e7acf8c00a8cd6a80e13002374dd93 Mon Sep 17 00:00:00 2001
From: Peter Donald
Date: Tue, 30 Apr 2002 14:31:01 +0000
Subject: [PATCH] Removed unused import.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272621 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/org/apache/tools/ant/taskdefs/Get.java | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/main/org/apache/tools/ant/taskdefs/Get.java b/src/main/org/apache/tools/ant/taskdefs/Get.java
index 2b10a6106..586cb3237 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Get.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Get.java
@@ -63,7 +63,6 @@ import java.net.URLConnection;
import java.net.HttpURLConnection;
import java.util.Date;
import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.util.FileUtils;
import org.apache.tools.ant.util.JavaEnvUtils;
@@ -147,7 +146,7 @@ public class Get extends Task {
// check to see if sun's Base64 encoder is available.
try {
sun.misc.BASE64Encoder encoder =
- (sun.misc.BASE64Encoder)
+ (sun.misc.BASE64Encoder)
Class.forName("sun.misc.BASE64Encoder").newInstance();
encoding = encoder.encode (up.getBytes());
@@ -155,7 +154,7 @@ public class Get extends Task {
Base64Converter encoder = new Base64Converter();
encoding = encoder.encode(up.getBytes());
}
- connection.setRequestProperty ("Authorization",
+ connection.setRequestProperty ("Authorization",
"Basic " + encoding);
}
@@ -165,7 +164,7 @@ public class Get extends Task {
if (connection instanceof HttpURLConnection) {
HttpURLConnection httpConnection
= (HttpURLConnection) connection;
- if (httpConnection.getResponseCode()
+ if (httpConnection.getResponseCode()
== HttpURLConnection.HTTP_NOT_MODIFIED) {
//not modified so no file download. just return
//instead and trace out something so the user
@@ -212,7 +211,7 @@ public class Get extends Task {
try {
byte[] buffer = new byte[100 * 1024];
int length;
-
+
while ((length = is.read(buffer)) >= 0) {
fos.write(buffer, 0, length);
if (verbose) {
@@ -244,7 +243,7 @@ public class Get extends Task {
if (verbose) {
Date t = new Date(remoteTimestamp);
log("last modified = " + t.toString()
- + ((remoteTimestamp == 0)
+ + ((remoteTimestamp == 0)
? " - using current time instead"
: ""));
}
@@ -307,7 +306,7 @@ public class Get extends Task {
* HTTP connections, it is ignored in other cases. When the flag
* is set, the local copy of the downloaded file will also have
* its timestamp set to the remote file time.
- *
+ *
* Note that remote files of date 1/1/1970 (GMT) are treated as
* 'no timestamp', and web servers often serve files with a
* timestamp in the future by replacing their timestamp with that