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

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

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

        }
 /// <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
     );
 }