예제 #1
0
 public WapBuilder(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath, string solutionPath)
     : base(settings, propertyProvider, sourcePath, tempPath)
 {
     _projectPath = projectPath;
     _tempPath = tempPath;
     _solutionPath = solutionPath;
 }
예제 #2
0
 public AspNet5Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath = projectPath;
     var properties = propertyProvider.GetProperties();
     properties[WellKnownEnvironmentVariables.DnxVersion] = AspNet5Helper.GetAspNet5RuntimeVersion(sourcePath);
 }
예제 #3
0
 public CustomBuilder(string repositoryPath, string tempPath, string command, IBuildPropertyProvider propertyProvider)
 {
     _repositoryPath   = repositoryPath;
     _tempPath         = tempPath;
     _command          = command;
     _propertyProvider = propertyProvider;
 }
        public SiteBuilderFactoryDispatcher(IDeploymentSettingsManager settingsManager, IBuildPropertyProvider propertyProvider, IEnvironment environment)
        {
            _settingsManager = settingsManager;

            _originalSiteBuilderFactory = new SiteBuilderFactory(settingsManager, propertyProvider, environment);
            _generatorSiteBuilderFactory = new Generator.SiteBuilderFactory(settingsManager, propertyProvider, environment);
        }
예제 #5
0
 public WapBuilder(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath, string solutionPath)
     : base(settings, propertyProvider, sourcePath)
 {
     _projectPath  = projectPath;
     _tempPath     = tempPath;
     _solutionPath = solutionPath;
 }
예제 #6
0
 public CustomBuilder(string repositoryPath, string tempPath, string command, IBuildPropertyProvider propertyProvider)
 {
     _repositoryPath = repositoryPath;
     _tempPath = tempPath;
     _command = command;
     _propertyProvider = propertyProvider;
 }
예제 #7
0
 public MsBuildSiteBuilder(IBuildPropertyProvider propertyProvider, string workingDirectory, string tempPath, string nugetCachePath)
 {
     _propertyProvider = propertyProvider;
     _msbuildExe = new Executable(PathUtility.ResolveMSBuildPath(), workingDirectory);
     _msbuildExe.EnvironmentVariables[NuGetCachePathKey] = nugetCachePath;
     _tempPath = tempPath;
 }
예제 #8
0
파일: WapBuilder.cs 프로젝트: remcoros/kudu
 public WapBuilder(IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath, string nugetCachePath, string solutionPath)
     : base(propertyProvider, sourcePath, tempPath, nugetCachePath)
 {
     _projectPath = projectPath;
     _tempPath = tempPath;
     _solutionPath = solutionPath;
 }
예제 #9
0
 public WapBuilder(IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath, string nugetCachePath, string solutionPath)
     : base(propertyProvider, sourcePath, tempPath, nugetCachePath)
 {
     _projectPath  = projectPath;
     _tempPath     = tempPath;
     _solutionPath = solutionPath;
 }
예제 #10
0
 public AspNet5Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, bool isConsoleApp)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath = projectPath;
     _sourcePath = sourcePath;
     _isConsoleApp = isConsoleApp;
 }
예제 #11
0
 public OryxBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     this.environment      = environment;
     this.settings         = settings;
     this.propertyProvider = propertyProvider;
     this.sourcePath       = sourcePath;
 }
예제 #12
0
        protected MsBuildSiteBuilder(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string workingDirectory)
        {
            _settings = settings;
            _propertyProvider = propertyProvider;
            _msbuildExe = new Executable(PathUtility.ResolveMSBuildPath(), workingDirectory, settings.GetCommandIdleTimeout());

            // NuGet.exe 1.8 will require an environment variable to make package restore work
            _msbuildExe.EnvironmentVariables[WellKnownEnvironmentVariables.NuGetPackageRestoreKey] = "true";
        }
예제 #13
0
 public CustomBuilder(string repositoryPath, string tempPath, string command, IBuildPropertyProvider propertyProvider, string homePath, IDeploymentSettingsManager settings)
 {
     _repositoryPath = repositoryPath;
     _tempPath = tempPath;
     _command = command;
     _propertyProvider = propertyProvider;
     _homePath = homePath;
     _settings = settings;
 }
예제 #14
0
        protected MsBuildSiteBuilder(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string workingDirectory)
        {
            _settings         = settings;
            _propertyProvider = propertyProvider;
            _msbuildExe       = new Executable(PathUtility.ResolveMSBuildPath(), workingDirectory, settings.GetCommandIdleTimeout());

            // NuGet.exe 1.8 will require an environment variable to make package restore work
            _msbuildExe.EnvironmentVariables[WellKnownEnvironmentVariables.NuGetPackageRestoreKey] = "true";
        }
예제 #15
0
        public ExternalCommandBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath)
        {
            Environment = environment;

            DeploymentSettings = settings;
            RepositoryPath = repositoryPath;
            PropertyProvider = propertyProvider;
            HomePath = environment.SiteRootPath;
        }
예제 #16
0
 public CustomBuilder(string repositoryPath, string tempPath, string command, IBuildPropertyProvider propertyProvider, string homePath, string scriptPath, IDeploymentSettingsManager settings)
 {
     _repositoryPath   = repositoryPath;
     _tempPath         = tempPath;
     _command          = command;
     _propertyProvider = propertyProvider;
     _homePath         = homePath;
     _scriptPath       = scriptPath;
     _settings         = settings;
 }
예제 #17
0
        protected ExternalCommandBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath)
        {
            Environment = environment;

            DeploymentSettings = settings;
            RepositoryPath     = repositoryPath;
            PropertyProvider   = propertyProvider;

            ExternalCommandFactory = new ExternalCommandFactory(environment, settings, repositoryPath);
        }
예제 #18
0
        protected ExternalCommandBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath)
        {
            Environment = environment;

            DeploymentSettings = settings;
            RepositoryPath = repositoryPath;
            PropertyProvider = propertyProvider;

            ExternalCommandFactory = new ExternalCommandFactory(environment, settings, repositoryPath);
        }
예제 #19
0
        public MsBuildSiteBuilder(IBuildPropertyProvider propertyProvider, string workingDirectory, string tempPath, string nugetCachePath)
        {
            _propertyProvider = propertyProvider;
            _msbuildExe = new Executable(PathUtility.ResolveMSBuildPath(), workingDirectory);

            // Disable this for now
            // _msbuildExe.EnvironmentVariables[NuGetCachePathKey] = nugetCachePath;

            // NuGet.exe 1.8 will require an environment variable to make package restore work
            _msbuildExe.EnvironmentVariables[NuGetPackageRestoreKey] = "true";

            _tempPath = tempPath;
        }
예제 #20
0
        public MsBuildSiteBuilder(IBuildPropertyProvider propertyProvider, string workingDirectory, string tempPath, string nugetCachePath)
        {
            _propertyProvider = propertyProvider;
            _msbuildExe       = new Executable(PathUtility.ResolveMSBuildPath(), workingDirectory);

            // Disable this for now
            // _msbuildExe.EnvironmentVariables[NuGetCachePathKey] = nugetCachePath;

            // NuGet.exe 1.8 will require an environment variable to make package restore work
            _msbuildExe.EnvironmentVariables[WellKnownEnvironmentVariables.NuGetPackageRestoreKey] = "true";

            _tempPath = tempPath;
        }
예제 #21
0
        public SolutionBuilder(IBuildFolderPathProvider buildFolderPathProvider, IBuildPropertyProvider buildPropertyProvider)
        {
            if (buildFolderPathProvider == null)
            {
                throw new ArgumentNullException("buildFolderPathProvider");
            }

            if (buildPropertyProvider == null)
            {
                throw new ArgumentNullException("buildPropertyProvider");
            }

            this.buildFolder = buildFolderPathProvider.GetBuildFolderPath();
            this.buildPropertyProvider = buildPropertyProvider;
        }
        public MSBuild14SolutionBuilder(IBuildFolderPathProvider buildFolderPathProvider, IBuildPropertyProvider buildPropertyProvider, IUserInterface userInterface)
        {
            if (buildFolderPathProvider == null)
            {
                throw new ArgumentNullException("buildFolderPathProvider");
            }

            if (buildPropertyProvider == null)
            {
                throw new ArgumentNullException("buildPropertyProvider");
            }

            this.buildFolder = buildFolderPathProvider.GetBuildFolderPath();
            this.buildPropertyProvider = buildPropertyProvider;
            this.userInterface = userInterface;
        }
예제 #23
0
 public CustomBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string command)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
     _command = command;
 }
예제 #24
0
 protected SolutionBasedSiteBuilder(IBuildPropertyProvider propertyProvider, string repositoryPath, string solutionPath, IDeploymentSettingsManager settings)
     : base(settings, propertyProvider, repositoryPath)
 {
     SolutionPath = solutionPath;
 }
예제 #25
0
파일: WapBuilder.cs 프로젝트: 40a/kudu
 public WapBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string solutionPath)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath = projectPath;
     _solutionPath = solutionPath;
 }
예제 #26
0
 public SolutionBasedSiteBuilder(IBuildPropertyProvider propertyProvider, string repositoryPath, string solutionPath)
 {
     _propertyProvider = propertyProvider;
     SolutionPath = solutionPath;
     _msbuildExe = new Executable(ResolveMSBuildPath(), repositoryPath);
 }
예제 #27
0
 public AspNetCoreBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string solutionPath = null)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath  = projectPath; // either xproj, csproj or project.json
     _solutionPath = solutionPath;
     if (_projectPath.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase))
     {
         _version = "csproj";
     }
     else if (_projectPath.EndsWith(".xproj", StringComparison.OrdinalIgnoreCase))
     {
         _version = "xproj";
     }
     else
     {
         _version = "project.json";
     }
 }
예제 #28
0
 public BaseBasicBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string projectPath, string commandArgument)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
     ProjectPath = CleanPath(projectPath);
     _commandArgument = commandArgument;
 }
 public CustomGeneratorCommandSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string scriptGeneratorArgs)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _scriptGeneratorArgs = scriptGeneratorArgs;
 }
예제 #30
0
 public MsBuildSiteBuilder(IBuildPropertyProvider propertyProvider, string workingDirectory)
 {
     _propertyProvider = propertyProvider;
     _msbuildExe = new Executable(ResolveMSBuildPath(), workingDirectory);
 }
 public DotNetConsoleMSBuild1607Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectFilePath, string solutionPath)
     : base(environment, settings, propertyProvider, sourcePath, projectFilePath, solutionPath, "--dotNetConsoleMSBuild1607")
 {
 }
예제 #32
0
        public AspNetCoreBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectFilePath, string solutionPath, string targetFramework)
            : base(environment, settings, propertyProvider, sourcePath, projectFilePath, solutionPath, "--aspNetCore", targetFramework)
        {
            if (projectFilePath.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase))
            {
                _version = "CSPROJ";
            }
            else if (projectFilePath.EndsWith(".xproj", StringComparison.OrdinalIgnoreCase))
            {
                // if it's xproj, throw invalidOperationException
                throw new InvalidOperationException(@"Building Asp.Net Core .xproj is no longer supported in Azure, please move to .csproj
For more information, please visit https://go.microsoft.com/fwlink/?linkid=850964");
            }
            else
            {
                _version = "PROJECT.JSON";
            }
        }
예제 #33
0
 public AspNet5Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath = projectPath;
 }
예제 #34
0
 protected BaseBasicBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string projectPath, string commandArgument)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
     ProjectPath      = CleanPath(projectPath);
     _commandArgument = commandArgument;
 }
예제 #35
0
 public OryxBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath)
     : base(environment, settings, propertyProvider, sourcePath)
 {
 }
예제 #36
0
 public WapBuilder(IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath)
     : this(propertyProvider, sourcePath, projectPath, tempPath, null)
 {
 }
예제 #37
0
 public SiteBuilderFactory(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, IEnvironment environment)
 {
     _settings         = settings;
     _propertyProvider = propertyProvider;
     _environment      = environment;
 }
예제 #38
0
 protected MicrosoftSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectFilePath, string solutionPath, string commandArgument, string targetFramework = "")
     : base(environment, settings, propertyProvider, sourcePath)
 {
     ProjectFilePath = CleanPath(projectFilePath);
     SolutionPath    = CleanPath(solutionPath);
     CommandArgument = commandArgument;
     TargetFramework = targetFramework;
 }
예제 #39
0
 public CustomBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string command)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
     _command = command;
 }
예제 #40
0
 public BasicConsoleBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath)
     : base(environment, settings, propertyProvider, sourcePath, projectPath)
 {
 }
예제 #41
0
 protected GeneratorSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
 }
예제 #42
0
파일: NodeSiteBuilder.cs 프로젝트: 40a/kudu
 public NodeSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string projectPath)
     : base(environment, settings, propertyProvider, repositoryPath, projectPath, "--node")
 {
 }
예제 #43
0
 public MsBuildSiteBuilder(IBuildPropertyProvider propertyProvider, string workingDirectory, string tempPath, string nugetCachePath)
     : this(null, propertyProvider, workingDirectory, tempPath, nugetCachePath)
 {
 }
예제 #44
0
 public FunctionMsbuildBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectFilePath, string solutionPath)
     : base(environment, settings, propertyProvider, sourcePath, projectFilePath, solutionPath, "--functionApp")
 {
 }
 public SiteBuilderFactoryDispatcher(IBuildPropertyProvider propertyProvider, IEnvironment environment)
 {
     _originalSiteBuilderFactory = new SiteBuilderFactory(propertyProvider, environment);
     _generatorSiteBuilderFactory = new Generator.SiteBuilderFactory(propertyProvider, environment);
 }
예제 #46
0
 public AspNetCoreBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string solutionPath = null)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath  = projectPath; // either xproj, csproj or project.json
     _solutionPath = solutionPath;
     if (_projectPath.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase))
     {
         _version = "csproj";
     }
     else if (_projectPath.EndsWith(".xproj", StringComparison.OrdinalIgnoreCase))
     {
         // if it's xproj, throw invalidOperationException
         throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture,
                                                           Resources.Error_ProjectNotDeployable,
                                                           projectPath));
     }
     else
     {
         _version = "project.json";
     }
 }
예제 #47
0
 public SiteBuilderFactory(IBuildPropertyProvider propertyProvider, IEnvironment environment)
 {
     _propertyProvider = propertyProvider;
     _environment = environment;
 }
예제 #48
0
 public GeneratorSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
 }
예제 #49
0
 public GoSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string projectPath)
     : base(environment, settings, propertyProvider, repositoryPath, projectPath, "--go")
 {
 }
예제 #50
0
 public CustomBuilder(string repositoryPath, string targetFile, IBuildPropertyProvider propertyProvider)
 {
     _repositoryPath = repositoryPath;
     _targetFile = targetFile;
     _propertyProvider = propertyProvider;
 }
예제 #51
0
 public SiteBuilderFactory(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, IEnvironment environment)
 {
     _settings = settings;
     _propertyProvider = propertyProvider;
     _environment = environment;
 }
예제 #52
0
 public FunctionDotNetCoreBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectFilePath, string solutionPath)
     : base(environment, settings, propertyProvider, sourcePath, projectFilePath, solutionPath, "--dotNetCoreFunctionApp")
 {
     FunctionAppHelper.ThrowsIfVersionMismatch(projectFilePath);
 }
예제 #53
0
 public SiteBuilderFactory(IBuildPropertyProvider propertyProvider, IEnvironment environment)
 {
     _propertyProvider = propertyProvider;
     _environment      = environment;
 }
예제 #54
0
 public SolutionBasedSiteBuilder(IBuildPropertyProvider propertyProvider, string repositoryPath, string tempPath, string nugetCachePath, string solutionPath)
     : base(propertyProvider, repositoryPath, tempPath, nugetCachePath)
 {
     SolutionPath = solutionPath;
 }
예제 #55
0
 public WebSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string solutionPath)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath  = projectPath;
     _solutionPath = solutionPath;
 }
예제 #56
0
 public AspNet5Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, IFileFinder fileFinder, string sourcePath, string projectPath, bool isConsoleApp)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _fileFinder   = fileFinder;
     _projectPath  = projectPath;
     _sourcePath   = sourcePath;
     _isConsoleApp = isConsoleApp;
 }
예제 #57
0
 public WebSiteBuilder(IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath, string solutionPath)
     : base(propertyProvider, sourcePath, tempPath, solutionPath)
 {
     _projectPath = projectPath;
 }
예제 #58
0
 public CustomGeneratorCommandSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string scriptGeneratorArgs)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _scriptGeneratorArgs = scriptGeneratorArgs;
 }
예제 #59
0
        public AspNet5Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath)
            : base(environment, settings, propertyProvider, sourcePath)
        {
            _projectPath = projectPath;
            var properties = propertyProvider.GetProperties();

            properties[WellKnownEnvironmentVariables.KreVersion] = AspNet5Helper.GetAspNet5RuntimeVersion(sourcePath);
        }
예제 #60
0
 public MsBuildSiteBuilder(IBuildPropertyProvider propertyProvider, string workingDirectory, string tempPath)
     : this(null, propertyProvider, workingDirectory, tempPath)
 {
 }