mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
- Added check for dependencies, which can be installed from the builder. - Replaced CosmosTask with CosmosBuildDefinition, which is much simpler. - The builder can be opened without any command line arguments. - If the VS path is not specified as a command line argument, it can be selected in a dialog.
31 lines
838 B
C#
31 lines
838 B
C#
using System.IO;
|
|
|
|
namespace Cosmos.Build.Builder.BuildTasks
|
|
{
|
|
internal class StartProcessTask : ProcessBuildTaskBase
|
|
{
|
|
public override string Name => $"Run Process - {_processName ?? Path.GetFileNameWithoutExtension(_exePath)}";
|
|
|
|
private string _exePath;
|
|
private string _args;
|
|
|
|
private string _processName;
|
|
|
|
public StartProcessTask(
|
|
string exePath,
|
|
string args,
|
|
string processName = null,
|
|
bool waitForExit = false,
|
|
bool createWindow = true)
|
|
: base(waitForExit, false)
|
|
{
|
|
_exePath = exePath;
|
|
_args = args;
|
|
|
|
_processName = processName;
|
|
}
|
|
|
|
protected override string GetExePath() => _exePath;
|
|
protected override string GetArguments() => _args;
|
|
}
|
|
}
|