+2009-12-14 Ankit Jain <jankit@novell.com>
+
+ Fix bug #562056.
+ * Parameters.cs: Property name/value pairs can be separated by ':'.
+
2009-11-26 Ankit Jain <jankit@novell.com>
* xbuild/Microsoft.Common.targets (PostBuildEvent): If
internal bool ProcessProperty (string s)
{
- string[] parameter, splittedProperties, property;
- parameter = s.Split (':');
- if (parameter.Length != 2) {
+ int colon = s.IndexOf (':');
+ if (colon + 1 == s.Length) {
ErrorUtilities.ReportError (5, "Property name and value expected as /p:<prop name>=<prop value>");
return false;
}
- splittedProperties = parameter [1].Split (';');
+ string [] splittedProperties = s.Substring (colon + 1).Split (';');
foreach (string st in splittedProperties) {
if (st.IndexOf ('=') < 0) {
ErrorUtilities.ReportError (5,
"<prop name>=[<prop value>]");
return false;
}
- property = st.Split ('=');
+ string [] property = st.Split ('=');
properties.SetProperty (property [0], property.Length == 2 ? property [1] : "");
}