You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
@ -32,6 +32,7 @@ using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Globalization;
|
||||
using Microsoft.Build.Framework;
|
||||
using Microsoft.Build.Utilities;
|
||||
using System.Text;
|
||||
|
||||
namespace Microsoft.Build.BuildEngine
|
||||
@ -123,6 +124,14 @@ namespace Microsoft.Build.BuildEngine
|
||||
return value;
|
||||
}
|
||||
|
||||
static string TrimFirstAndLast(string unTrimmed)
|
||||
{
|
||||
if (unTrimmed.Length > 1 && Array.IndexOf (ArgumentTrimChars, unTrimmed [0]) != -1 && Array.IndexOf (ArgumentTrimChars, unTrimmed [unTrimmed.Length - 1]) != -1) {
|
||||
return unTrimmed.Substring (1, unTrimmed.Length - 2);
|
||||
}
|
||||
return unTrimmed;
|
||||
}
|
||||
|
||||
void ExpandArguments (Project project, ExpressionOptions options)
|
||||
{
|
||||
for (int i = 0; i < Arguments.Count; ++i) {
|
||||
@ -133,7 +142,7 @@ namespace Microsoft.Build.BuildEngine
|
||||
arg = Expression.ParseAs<string> (arg, ParseOptions.None,
|
||||
project, options);
|
||||
|
||||
arg = arg.Trim (ArgumentTrimChars);
|
||||
arg = TrimFirstAndLast (arg);
|
||||
}
|
||||
|
||||
Arguments [i] = arg;
|
||||
@ -280,7 +289,10 @@ namespace Microsoft.Build.BuildEngine
|
||||
|
||||
public ITaskItem[] ConvertToITaskItemArray (Project project, ExpressionOptions options)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
var items = new ITaskItem[1];
|
||||
items[0] = new TaskItem (ConvertToString (project, options));
|
||||
|
||||
return items;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user