* Csc.cs (AddResponseFileCommands): Split DefineConstants on space also.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CscTest.cs (TestDefineConstants): Update DefineConstants to include
spaces also.
svn path=/trunk/mcs/; revision=135610
+2009-06-07 Ankit Jain <jankit@novell.com>
+
+ * Csc.cs (AddResponseFileCommands): Split DefineConstants on space also.
+
2009-06-07 Ankit Jain <jankit@novell.com>
* AssignTargetPath.cs (Execute): Expand incoming path to absolute
commandLine.AppendSwitch ("/checked-");
if (!String.IsNullOrEmpty (DefineConstants)) {
- string [] defines = DefineConstants.Split (new char [] {';'},
+ string [] defines = DefineConstants.Split (new char [] {';', ' '},
StringSplitOptions.RemoveEmptyEntries);
if (defines.Length > 0)
commandLine.AppendSwitchUnquotedIfNotNull ("/define:",
+2009-06-07 Ankit Jain <jankit@novell.com>
+
+ * CscTest.cs (TestDefineConstants): Update DefineConstants to include
+ spaces also.
+
2009-06-07 Ankit Jain <jankit@novell.com>
* AssignTargetPathTest.cs: Update tests to not depend on a fixed
CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();
- csc.DefineConstants = "A;B;;CD;;;Foo";
+ csc.DefineConstants = "A;B;;CD;;;Foo Bar";
csc.ARFC (c1);
csc.ACLC (c2);
- Assert.AreEqual ("/define:A;B;CD;Foo", c1.ToString (), "A1");
+ Assert.AreEqual ("/define:A;B;CD;Foo;Bar", c1.ToString (), "A1");
Assert.AreEqual (String.Empty, c2.ToString (), "A2");
}