You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by sg...@apache.org on 2010/08/12 08:07:36 UTC
svn commit: r984648 -
/commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/CommandLineTest.java
Author: sgoeschl
Date: Thu Aug 12 06:07:35 2010
New Revision: 984648
URL: http://svn.apache.org/viewvc?rev=984648&view=rev
Log:
Fixing typo in comment
Modified:
commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/CommandLineTest.java
Modified: commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/CommandLineTest.java
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/CommandLineTest.java?rev=984648&r1=984647&r2=984648&view=diff
==============================================================================
--- commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/CommandLineTest.java (original)
+++ commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/CommandLineTest.java Thu Aug 12 06:07:35 2010
@@ -229,7 +229,7 @@ public class CommandLineTest extends Tes
/**
* A command line parsing puzzle from Tino Schoellhorn - ImageMagix expects
* a "500x>" parameter (including quotes) and it is simply not possible to
- * do that withoud adding a space, e.g. "500x> ".
+ * do that without adding a space, e.g. "500x> ".
*/
public void testParseComplexCommandLine1() {
HashMap substitutionMap = new HashMap();
@@ -426,4 +426,22 @@ public class CommandLineTest extends Tes
cmdl = CommandLine.parse("AcroRd32.exe /p /h '${file}'", params);
assertEquals(cmdl.toString(), "AcroRd32.exe /p /h C:\\documents\\432432.pdf");
}
+
+ /**
+ public void testComplexAddArguments3() {
+
+ CommandLine cmdl;
+ String result = "dotnetfx.exe /q:a /c:\"install.exe /l \"\"c:\\Documents and Settings\\myusername\\Local Settings\\Temp\\netfx.log\"\" /q\"";
+
+ // using command line parser
+ cmdl = CommandLine.parse("dotnetfx.exe /q:a /c:'\"install.exe /l \"\"c:\\Documents and Settings\\myusername\\Local Settings\\Temp\\netfx.log\"\" /q\"\"'");
+ // assertEquals(cmdl.toString(), result);
+
+ // building the command line incrementally
+ cmdl = new CommandLine("dotnetfx.exe");
+ cmdl.addArgument("/q:a", false);
+ cmdl.addArgument("/c:\"install.exe /l \"\"c:\\Documents and Settings\\myusername\\Local Settings\\Temp\\netfx.log\"\" /q\"", false);
+ assertEquals(cmdl.toStrings(), );
+ }
+ */
}