示例#1
0
文件: Deployer.cs 项目: massreuy/3P
        /// <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();
        }
示例#2
0
文件: Deployer.cs 项目: zhitian/3P
        /// <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();
        }