diff options
author | Alan McGovern <alan.mcgovern@gmail.com> | 2011-11-24 15:08:27 +0400 |
---|---|---|
committer | Alan McGovern <alan.mcgovern@gmail.com> | 2011-11-24 15:09:27 +0400 |
commit | e9e087377ec6e864bde4bcefc582d3e358e36188 (patch) | |
tree | ca3618f8ec1dfaf05f4f75c842e29b5ece045cba /main/src | |
parent | 75d9bd61fd6fdcad8dfd545f9ffe70a3ba6dad09 (diff) |
[Core] Store the process path in ProcessArgumentBuilder too
This simplifies some code as we can now return both the path to
a tool and default arguments it requires in one object.
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessArgumentBuilder.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessArgumentBuilder.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessArgumentBuilder.cs index 4b6d595992..249e35d81c 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessArgumentBuilder.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessArgumentBuilder.cs @@ -35,9 +35,23 @@ namespace MonoDevelop.Core.Execution { System.Text.StringBuilder sb = new System.Text.StringBuilder (); + public string ProcessPath { + get; private set; + } + // .NET doesn't allow escaping chars other than " and \ inside " quotes static string escapeDoubleQuoteCharsStr = "\\\""; + public ProcessArgumentBuilder () + { + + } + + public ProcessArgumentBuilder (string processPath) + { + ProcessPath = processPath; + } + /// <summary> /// Adds an argument without escaping or quoting. /// </summary> |