Skip to content

Commit

Permalink
fix launch issue
Browse files Browse the repository at this point in the history
  • Loading branch information
laolarou726 committed Nov 12, 2023
1 parent 4acf129 commit c8a40f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public IEnumerable<string> ParseJvmHeadArguments()
public IEnumerable<string> ParseJvmArguments()
{
var versionNameFollowing = string.IsNullOrEmpty(_rootVersion) ? string.Empty : $",{_rootVersion}";
var versionName = $"{LaunchSettings.Version}{versionNameFollowing}";
var versionName = $"{LaunchSettings.Version}{versionNameFollowing}".Replace(' ', '_');

var jvmArgumentsDic = new Dictionary<string, string>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,6 @@ public override async Task<LaunchResult> LaunchTaskAsync(LaunchSettings? setting
var executable = arguments[0];
arguments.RemoveAt(0);

/*
for (var i = 0; i < arguments.Count; i++)
{
if (arguments[i].Contains(' '))
arguments[i] = $"\"{arguments[i]}\"";
}
*/

//通过String Builder格式化参数。(转化成字符串)
//Format the arguments using string builder.(Convert to string)
// arguments.ForEach(arg => sb.Append(arg.Trim()).Append(' '));
Expand Down

0 comments on commit c8a40f6

Please sign in to comment.