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/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs Tar.java
Date Sun, 27 Jan 2002 01:20:34 GMT
donaldp     02/01/26 17:20:34

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs
                        Tar.java
  Log:
  NAMELEN constant moved to TarEntry
  
  Revision  Changes    Path
  1.21      +6 -10     jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Tar.java
  
  Index: Tar.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Tar.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- Tar.java	22 Jan 2002 12:13:46 -0000	1.20
  +++ Tar.java	27 Jan 2002 01:20:34 -0000	1.21
  @@ -13,16 +13,12 @@
   import java.io.IOException;
   import java.util.ArrayList;
   import java.util.Iterator;
  -import org.apache.myrmidon.api.TaskException;
  -
  -
  -
  -import org.apache.tools.ant.util.mappers.MergingMapper;
  -import org.apache.tools.ant.types.SourceFileScanner;
  -import org.apache.aut.tar.TarConstants;
   import org.apache.aut.tar.TarEntry;
   import org.apache.aut.tar.TarOutputStream;
   import org.apache.avalon.excalibur.io.IOUtil;
  +import org.apache.myrmidon.api.TaskException;
  +import org.apache.tools.ant.types.SourceFileScanner;
  +import org.apache.tools.ant.util.mappers.MergingMapper;
   
   /**
    * Creates a TAR archive.
  @@ -249,7 +245,7 @@
               path += "/";
           }
   
  -        if( path.length() >= TarConstants.NAMELEN )
  +        if( path.length() >= TarEntry.NAMELEN )
           {
               if( longFileMode.isOmitMode() )
               {
  @@ -260,7 +256,7 @@
               else if( longFileMode.isWarnMode() )
               {
                   final String message = "Entry: " + path + " longer than " +
  -                    TarConstants.NAMELEN + " characters.";
  +                    TarEntry.NAMELEN + " characters.";
                   getLogger().warn( message );
                   if( !longWarningGiven )
                   {
  @@ -273,7 +269,7 @@
               else if( longFileMode.isFailMode() )
               {
                   final String message = "Entry: " + path + " longer than " +
  -                                        TarConstants.NAMELEN + "characters.";
  +                    TarEntry.NAMELEN + "characters.";
                   throw new TaskException( message );
               }
           }
  
  
  

--
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