private void ErrorIfRealTimeLogSetButLogFileNotSet(UnityEditorSettings settings, UnityEditorArguments arguments) { if (settings.RealTimeLog && arguments.LogFile == null) { log.Error("Cannot forward log in real time because LogFile is not specified."); } }
public void Run(FilePath unityEditorPath, UnityEditorArguments arguments, UnityEditorSettings settings) { ErrorIfRealTimeLogSetButLogFileNotSet(settings, arguments); WarnIfLogFileNotSet(arguments); if (settings.RealTimeLog && arguments.LogFile != null) { RunWithRealTimeLog(unityEditorPath, arguments); } else { RunWithLogForwardOnError(unityEditorPath, arguments); } }
public static void UnityEditor(this ICakeContext context, FilePath unityEditorPath, UnityEditorArguments arguments, UnityEditorSettings settings) => new UnityEditor(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log) .Run(unityEditorPath, arguments, settings);
public static void UnityEditor(this ICakeContext context, int versionYear, int versionStream, int versionUpdate, char versionSuffixCharacter, int versionSuffixNumber, UnityEditorArguments arguments, UnityEditorSettings settings = null) => new UnityEditor(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log) .Run(
public static void UnityEditor(this ICakeContext context, UnityEditorDescriptor unityEditor, UnityEditorArguments arguments, UnityEditorSettings settings = null) => new UnityEditor(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log) .Run(unityEditor, arguments, settings ?? new UnityEditorSettings());
public void Run(UnityEditorDescriptor unityEditor, UnityEditorArguments arguments, UnityEditorSettings settings) => Run(unityEditor.Path, arguments, settings);