private static string GetSetting(Task<string> setting, string scSetting) { if (setting != null && setting.Value != null) { return String.Format(@" {0}= ""{1}""", scSetting, setting.Value); } else { return ""; } }
public NUnitTestsWithPartCover() { OutputPath = "partcover.xml"; PartCoverPath = @"C:\Program Files (x86)\PartCover\PartCover .NET 4.0\PartCover.exe"; ExcludeRules = new string[0]; IncludeRules = new string[0]; RegisterPartCoverDlls = true; ShadowCopyNUnitFiles = false; }
public Iis6WebSite() { Bindings = new[] {new Iis6WebSiteBinding {Port = 80}}; ScriptMapsToAdd = new Iis6ScriptMap[0]; Authentication = new[] {Iis6Authentication.Basic, Iis6Authentication.NTLM}; AppPool = null; Started = true; AccessFlags = Iis6WebSiteAccessFlags.Read; }
public VisualStudioSolution() { MsBuildExe = Environment.ExpandEnvironmentVariables(@"%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"); }
public NUnitTests() { NUnitConsolePath = @"c:\Program Files (x86)\NUnit\nunit-console.exe"; ExcludeCategories = new string[0]; IncludeCategories = new string[0]; }
private static string GetIncludeExcludeArgument(string argumentName, Task<IEnumerable<string>> categories) { if (categories.Value.Count() > 0) { return "/" + argumentName + "=" + String.Join(",", categories.Value.ToArray()); } return ""; }
public Iis6AppPool() { Identity = new Iis6AppPoolIdentity {IdentityType = Iis6AppPoolIdentityType.NetworkService}; }
protected WindowsServiceBaseTask() { Machine = "localhost"; }
private Task<string> GetPreparedDeployPackage(Task<string> package) { return package.WithDependencyOn(PrepareDeploy(package)); }
private Task<string> CopyBounceDirectoryIntoPackage(Task<string> package) { Task<string> copiedBounceDirectory = new Copy { FromPath = Path.GetDirectoryName(ObsoleteBounceRunner.TargetsPath), ToPath = package.SubPath("Bounce"), Excludes = Copy.SvnDirectories, }.ToPath; var deletedBeforeBounce = new Delete {Path = copiedBounceDirectory.SubPath("beforebounce.*")}; return copiedBounceDirectory.SubPath("..").WithDependencyOn(deletedBeforeBounce); }
public WindowsService() { StartupType = WindowsServiceStartupType.Manual; }
private IEnumerable<string> GetValueOf(Task<IEnumerable<string>> paths) { return paths != null ? paths.Value : null; }
public Copy(IFileSystemCopier fileSystemCopier) { FileSystemCopier = fileSystemCopier; DeleteToDirectory = true; }
public Task<string> this[Task<string> filename] { get { return new All(Root, filename).WhenBuilt(() => Path.Combine(Root.Value, filename.Value)); } }
private IObsoleteTask GetInvokeRemoteDeploy(Task<string> package) { Task<string> packageAfterDeploy = GetPreparedDeployPackage(package); if (Deploy != null) { return InvokeRemoteDeploy(packageAfterDeploy); } else { return packageAfterDeploy; } }
public DirectoryFiles(Task<string> root) { Root = root; }
public ScheduledTask() { SchTasksArguments = ""; ForceDelete = false; SchTasksCommandPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "schtasks.exe"); }