Beispiel #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public Deployer(ProEnvironment.ProEnvironmentObject proEnv)
        {
            ProEnv = proEnv;

            // we need to filter/sort the list of computation path when it changes
            OnDeployConfigurationUpdate += () => _deployRulesList = null;
        }
Beispiel #2
0
        public ProExecution()
        {
            // create a copy of the current environment
            ProEnv = new ProEnvironment.ProEnvironmentObject(ProEnvironment.Current);

            DistantRootTempDir = Path.Combine(ProEnv.BaseCompilationPath, "~3pTempDirectory");

            if (_lock.TryEnterWriteLock(-1))
            {
                _proExecutionCounter++;
                _proExecutionOpenedNumber++;
                _lock.ExitWriteLock();
            }
            else
            {
                throw new Exception("Couln't increase the execution counter...");
            }
        }
Beispiel #3
0
        public ProExecution(ProEnvironment.ProEnvironmentObject proEnv)
        {
            ProEnv = proEnv == null ? new ProEnvironment.ProEnvironmentObject(ProEnvironment.Current) : proEnv;

            _preprocessedVars = new Dictionary <string, string> {
                { "LogPath", "\"\"" },
                { "DbLogPath", "\"\"" },
                { "PropathToUse", "\"\"" },
                { "DbConnectString", "\"\"" },
                { "ExecutionType", "\"\"" },
                { "CurrentFilePath", "\"\"" },
                { "OutputPath", "\"\"" },
                { "ToCompileListFile", "\"\"" },
                { "AnalysisMode", "false" },
                { "CompileProgressionFile", "\"\"" },
                { "DbConnectionMandatory", "false" },
                { "NotificationOutputPath", "\"\"" },
                { "PreExecutionProgram", "\"\"" },
                { "PostExecutionProgram", "\"\"" },
            };
        }
Beispiel #4
0
 public ProExecutionDeploymentHook(ProEnvironment.ProEnvironmentObject proEnv) : base(proEnv)
 {
 }
Beispiel #5
0
 /// <summary>
 /// Hard copy
 /// </summary>
 public Deployer(ProEnvironment.ProEnvironmentObject proEnv, Deployer deployer)
 {
     ProEnv           = proEnv;
     _deployRulesList = deployer.DeployRules;
 }