Exemplo n.º 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public Deployer(List <DeployRule> deployRules, ProEnvironment.ProEnvironmentObject proEnv)
        {
            _compileLocally      = proEnv.CompileLocally;
            _deploymentDirectory = proEnv.BaseCompilationPath;
            ProlibPath           = proEnv.ProlibPath;

            DeployRules   = deployRules.ToNonNullList();
            DeployVarList = DeployRules.OfType <DeployVariableRule>().ToNonNullList();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public Deployer(List <DeployRule> deployRules, ProEnvironment.ProEnvironmentObject proEnv)
        {
            _compileLocally      = proEnv.CompileLocally;
            _deploymentDirectory = proEnv.BaseCompilationPath;
            _sourceDirectory     = (string.IsNullOrEmpty(proEnv.BaseLocalPath) ? "" : Path.GetFullPath(proEnv.BaseLocalPath).TrimEnd('\\'));
            _compressionLevel    = CompressionLevel.Normal;
            _compileUnmatchedProgressFilesToDeployDir = true;
            ProlibPath = proEnv.ProlibPath;

            DeployRules   = deployRules.ToNonNullList();
            DeployVarList = DeployRules.OfType <DeployVariableRule>().ToNonNullList();
        }