ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Get.java
Date Tue, 30 Apr 2002 14:31:01 GMT
donaldp     02/04/30 07:31:01

  Modified:    src/main/org/apache/tools/ant/taskdefs Get.java
  Log:
  Removed unused import.
  
  Revision  Changes    Path
  1.25      +6 -7      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Get.java
  
  Index: Get.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Get.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- Get.java	29 Apr 2002 15:04:21 -0000	1.24
  +++ Get.java	30 Apr 2002 14:31:01 -0000	1.25
  @@ -63,7 +63,6 @@
   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 @@
                   // 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 @@
                       Base64Converter encoder = new Base64Converter();
                       encoding = encoder.encode(up.getBytes());
                   }
  -                connection.setRequestProperty ("Authorization", 
  +                connection.setRequestProperty ("Authorization",
                                                  "Basic " + encoding);
               }
   
  @@ -165,7 +164,7 @@
               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 @@
               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 @@
                   if (verbose)  {
                       Date t = new Date(remoteTimestamp);
                       log("last modified = " + t.toString()
  -                        + ((remoteTimestamp == 0) 
  +                        + ((remoteTimestamp == 0)
                             ? " - using current time instead"
                             : ""));
                   }
  @@ -307,7 +306,7 @@
        * 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.</p>
  -     * 
  +     *
        * <p>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
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message