ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant PathTokenizer.java
Date Mon, 04 Mar 2002 15:52:54 GMT
bodewig     02/03/04 07:52:54

  Modified:    src/main/org/apache/tools/ant PathTokenizer.java
  Log:
  remove redundant attribute.
  
  Revision  Changes    Path
  1.9       +3 -8      jakarta-ant/src/main/org/apache/tools/ant/PathTokenizer.java
  
  Index: PathTokenizer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/PathTokenizer.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PathTokenizer.java	1 Mar 2002 08:45:53 -0000	1.8
  +++ PathTokenizer.java	4 Mar 2002 15:52:54 -0000	1.9
  @@ -89,11 +89,6 @@
       private boolean onNetWare = Os.isFamily("netware");
   
       /**
  -     * This will be used for String comparisons of the path Separator later
  -     */
  -    private String pathSeparatorStr = String.valueOf(File.pathSeparatorChar);
  -
  -    /**
        * Flag to indicate whether or not we are running on a platform with a
        * DOS style filesystem
        */
  @@ -174,7 +169,7 @@
           else {
               // we are on NetWare, tokenizing is handled a little differently,
               // due to the fact that NetWare has multiple-character volume names.
  -            if (token.equals(pathSeparatorStr)) {
  +            if (token.equals(File.pathSeparator)) {
                   // ignore ";" and get the next token
                   token = tokenizer.nextToken().trim();
               }
  @@ -184,12 +179,12 @@
                   String nextToken = tokenizer.nextToken().trim();
                   
                   // make sure we aren't going to get the path separator next
  -                if (!nextToken.equals(pathSeparatorStr)) {
  +                if (!nextToken.equals(File.pathSeparator)) {
                       if (nextToken.equals(":")) {
                           if (!token.startsWith("/") && !token.startsWith("\\")){

                               // it indeed is a drive spec, get the next bit
                               String oneMore = tokenizer.nextToken().trim();
  -                            if (!oneMore.equals(pathSeparatorStr)) {
  +                            if (!oneMore.equals(File.pathSeparator)) {
                                   token += ":" + oneMore;
                               }
                               else {
  
  
  

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