brett       2004/04/14 23:05:51

  Modified:    src/java/org/apache/maven/util Tag: MAVEN-1_0-BRANCH
                        HttpUtils.java
  Log:
  formatting
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.28.4.5  +14 -15    maven/src/java/org/apache/maven/util/HttpUtils.java
  
  Index: HttpUtils.java
  ===================================================================
  RCS file: /home/cvs/maven/src/java/org/apache/maven/util/HttpUtils.java,v
  retrieving revision 1.28.4.4
  retrieving revision 1.28.4.5
  diff -u -r1.28.4.4 -r1.28.4.5
  --- HttpUtils.java    4 Apr 2004 03:02:16 -0000       1.28.4.4
  +++ HttpUtils.java    15 Apr 2004 06:05:51 -0000      1.28.4.5
  @@ -173,18 +173,18 @@
           Date timestamp = null;
           if ( useTimestamp && destinationFile.exists() )
           {
  -            timestamp = new Date(destinationFile.lastModified());
  +            timestamp = new Date( destinationFile.lastModified() );
           }
   
           try
           {
  -            getFile(url,
  -                    destinationFile,
  -                    timestamp,
  -                    proxyHost,
  -                    proxyPort,
  -                    proxyUserName,
  -                    proxyPassword);
  +            getFile( url,
  +                     destinationFile,
  +                     timestamp,
  +                     proxyHost,
  +                     proxyPort,
  +                     proxyUserName,
  +                     proxyPassword );
           }
           catch ( IOException ex )
           {
  @@ -212,12 +212,12 @@
        * @exception IOException If an I/O exception occurs.
        */
       public static void getFile( String url,
  -                               File destinationFile,
  -                               Date timestamp,
  -                               String proxyHost,
  -                               String proxyPort,
  -                               String proxyUserName,
  -                               String proxyPassword )
  +                                File destinationFile,
  +                                Date timestamp,
  +                                String proxyHost,
  +                                String proxyPort,
  +                                String proxyUserName,
  +                                String proxyPassword )
         throws IOException
       {
           String[] s = parseUrl( url );
  @@ -234,7 +234,6 @@
           URLConnection connection = source.openConnection();
   
           //modify the headers
  -        //NB: things like user authentication could go in here too.
           if ( timestamp != null )
           {
               connection.setIfModifiedSince( timestamp.getTime() );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to