ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/testcases/org/apache/tools/ant/types CommandlineTest.java
Date Mon, 07 Aug 2000 11:17:13 GMT
bodewig     00/08/07 04:17:12

  Modified:    src/main/org/apache/tools/ant/types Commandline.java
               src/testcases/org/apache/tools/ant/types
                        CommandlineTest.java
  Log:
  Still to Unix centric.
  
  Revision  Changes    Path
  1.5       +1 -1      jakarta-ant/src/main/org/apache/tools/ant/types/Commandline.java
  
  Index: Commandline.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/types/Commandline.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Commandline.java	2000/08/07 11:13:30	1.4
  +++ Commandline.java	2000/08/07 11:17:12	1.5
  @@ -302,7 +302,7 @@
                           String escapedToken = tok.nextToken();
                           char escapedChar = escapedToken.charAt(0);
                           if (escapedChar == '\\' || escapedChar == '\'' ||
  -                            escapedChar == '\"' || escapedChar == ' ') {
  +                            escapedChar == '\"') {
                               current.append(escapedToken);
                           }
                           else {
  
  
  
  1.3       +0 -4      jakarta-ant/src/testcases/org/apache/tools/ant/types/CommandlineTest.java
  
  Index: CommandlineTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/types/CommandlineTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CommandlineTest.java	2000/08/07 11:13:38	1.2
  +++ CommandlineTest.java	2000/08/07 11:17:12	1.3
  @@ -111,10 +111,6 @@
           assertEquals("Single quotes stripped, double quote included", "2\"3",
                        s[1]);
   
  -        s = Commandline.translateCommandline("1 2\\ 3 4");
  -        assertEquals("Case with quoted whitespace", 3, s.length);
  -        assertEquals("space included", "2 3", s[1]);
  -        
           s = Commandline.translateCommandline("1 2\\\'3 4");
           assertEquals("Case with quoted single quote", 3, s.length);
           assertEquals("single quote included", "2\'3", s[1]);
  
  
  

Mime
View raw message