Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
        internal StandaloneTarget Clone()
        {
            var res = new StandaloneTarget();

            res.InterpreterPath  = InterpreterPath;
            res.WorkingDirectory = WorkingDirectory;
            res.Script           = Script;
            res.Arguments        = Arguments;
            return(res);
        }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 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
         );
 }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
        internal StandaloneTarget Clone() {
            var res = new StandaloneTarget();

            res.InterpreterPath = InterpreterPath;
            res.WorkingDirectory = WorkingDirectory;
            res.Script = Script;
            res.Arguments = Arguments;
            return res;

        }
Ejemplo n.º 9
0
 /// <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;
 }
 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
     );
 }