jkf         2005/06/07 08:32:48

  Modified:    src/main/org/apache/tools/ant/taskdefs Tar.java
               src/main/org/apache/tools/tar TarInputStream.java
                        TarConstants.java
  Log:
  moved { one line up, extended Cright
  
  Revision  Changes    Path
  1.56      +2 -3      ant/src/main/org/apache/tools/ant/taskdefs/Tar.java
  
  Index: Tar.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Tar.java,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- Tar.java  6 Jun 2005 22:18:27 -0000       1.55
  +++ Tar.java  7 Jun 2005 15:32:48 -0000       1.56
  @@ -1,5 +1,5 @@
   /*
  - * Copyright  2000-2004 The Apache Software Foundation
  + * Copyright  2000-2005 The Apache Software Foundation
    *
    *  Licensed under the Apache License, Version 2.0 (the "License");
    *  you may not use this file except in compliance with the License.
  @@ -371,8 +371,7 @@
               TarEntry te = new TarEntry(vPath);
               te.setModTime(file.lastModified());
               if (!file.isDirectory()) {
  -                if (file.length() > TarConstants.MAXSIZE)
  -                {
  +                if (file.length() > TarConstants.MAXSIZE) {
                       throw new BuildException("File: " + file + " larger than 
" +
                               TarConstants.MAXSIZE + " bytes.");
                   }
  
  
  
  1.21      +1 -2      ant/src/main/org/apache/tools/tar/TarInputStream.java
  
  Index: TarInputStream.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/tar/TarInputStream.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- TarInputStream.java       6 Jun 2005 22:18:27 -0000       1.20
  +++ TarInputStream.java       7 Jun 2005 15:32:48 -0000       1.21
  @@ -126,8 +126,7 @@
        * @throws IOException for signature
        */
       public int available() throws IOException {
  -        if (this.entrySize - this.entryOffset > Integer.MAX_VALUE)
  -        {
  +        if (this.entrySize - this.entryOffset > Integer.MAX_VALUE) {
               return Integer.MAX_VALUE;
           }
           return (int) (this.entrySize - this.entryOffset);
  
  
  
  1.15      +1 -1      ant/src/main/org/apache/tools/tar/TarConstants.java
  
  Index: TarConstants.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/tar/TarConstants.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- TarConstants.java 6 Jun 2005 22:18:27 -0000       1.14
  +++ TarConstants.java 7 Jun 2005 15:32:48 -0000       1.15
  @@ -1,5 +1,5 @@
   /*
  - * Copyright  2000-2002,2004 The Apache Software Foundation
  + * Copyright  2000-2002,2004-2005 The Apache Software Foundation
    *
    *  Licensed under the Apache License, Version 2.0 (the "License");
    *  you may not use this file except in compliance with the License.
  
  
  

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

Reply via email to