/// <summary> /// Create a StandaloneTargetView with values taken from a template. /// </summary> public StandaloneTargetView(StandaloneTarget template) : this() { ScriptPath = template.Script; WorkingDirectory = template.WorkingDirectory ?? string.Empty; Arguments = template.Arguments; }
internal StandaloneTarget Clone() { var res = new StandaloneTarget(); res.InterpreterPath = InterpreterPath; res.WorkingDirectory = WorkingDirectory; res.Script = Script; res.Arguments = Arguments; return(res); }
internal static bool IsSame(ProfilingTarget self, ProfilingTarget other) { if (self == null) { return(other == null); } else if (other != null) { return(ProjectTarget.IsSame(self.ProjectTarget, other.ProjectTarget) && StandaloneTarget.IsSame(self.StandaloneTarget, other.StandaloneTarget)); } return(false); }
internal static bool IsSame(StandaloneTarget self, StandaloneTarget other) { if (self == null) { return(other == null); } else if (other != null) { return(self.InterpreterPath == other.InterpreterPath && self.WorkingDirectory == other.WorkingDirectory && self.Script == other.Script && self.Arguments == other.Arguments); } return(false); }
private static void ProfileStandaloneTarget(SessionNode session, StandaloneTarget runTarget, bool openReport) { RunProfiler( session, runTarget.InterpreterPath, String.Empty, // interpreter args runTarget.Script, runTarget.Arguments, runTarget.WorkingDirectory, null, // env vars openReport, null, // launch url, null, // port false // start browser ); }
internal ProfilingTarget Clone() { var res = new ProfilingTarget(); if (ProjectTarget != null) { res.ProjectTarget = ProjectTarget.Clone(); } if (StandaloneTarget != null) { res.StandaloneTarget = StandaloneTarget.Clone(); } if (Reports != null) { res.Reports = Reports.Clone(); } return(res); }
internal static bool IsSame(StandaloneTarget self, StandaloneTarget other) { if (self == null) { return other == null; } else if (other != null) { return self.InterpreterPath == other.InterpreterPath && self.WorkingDirectory == other.WorkingDirectory && self.Script == other.Script && self.Arguments == other.Arguments; } return false; }
internal StandaloneTarget Clone() { var res = new StandaloneTarget(); res.InterpreterPath = InterpreterPath; res.WorkingDirectory = WorkingDirectory; res.Script = Script; res.Arguments = Arguments; return res; }