ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/testcases/org/apache/tools/ant/types CommandlineTest.java
Date Fri, 16 Nov 2001 23:28:52 GMT
sbailliez    01/11/16 15:28:52

  Modified:    src/testcases/org/apache/tools/ant/types
                        CommandlineTest.java
  Log:
  Added the test testAwkCommand to reproduce bug 4911
  I commented it out for now since I'm not that confortable with the quoting logic in command
line.
  
  Revision  Changes    Path
  1.8       +6 -0      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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- CommandlineTest.java	2001/05/23 16:58:32	1.7
  +++ CommandlineTest.java	2001/11/16 23:28:52	1.8
  @@ -144,4 +144,10 @@
           assertEquals("1 \"2\'3\"", Commandline.toString(new String[] {"1", "2\'3"}));
           assertEquals("1 \'2\"3\'", Commandline.toString(new String[] {"1", "2\"3"}));
       }
  +
  +    /*
  +    public void testAwkCommand(){
  +        String s = Commandline.toString(new String[]{"awk", "'NR == 2 { print $NF }'"});
  +        assertEquals("awk 'NR == 2 { print $NF }'", s);
  +    } */
   }
  
  
  

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