示例#1
0
 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 "";
     }
 }
示例#2
0
 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;
 }
示例#3
0
 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;
 }
示例#4
0
 public VisualStudioSolution()
 {
     MsBuildExe = Environment.ExpandEnvironmentVariables(@"%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe");
 }
示例#5
0
 public NUnitTests()
 {
     NUnitConsolePath = @"c:\Program Files (x86)\NUnit\nunit-console.exe";
     ExcludeCategories = new string[0];
     IncludeCategories = new string[0];
 }
示例#6
0
 private static string GetIncludeExcludeArgument(string argumentName, Task<IEnumerable<string>> categories)
 {
     if (categories.Value.Count() > 0)
     {
         return "/" + argumentName + "=" + String.Join(",", categories.Value.ToArray());
     }
     return "";
 }
示例#7
0
 public Iis6AppPool()
 {
     Identity = new Iis6AppPoolIdentity {IdentityType = Iis6AppPoolIdentityType.NetworkService};
 }
示例#8
0
 protected WindowsServiceBaseTask()
 {
     Machine = "localhost";
 }
示例#9
0
 private Task<string> GetPreparedDeployPackage(Task<string> package)
 {
     return package.WithDependencyOn(PrepareDeploy(package));
 }
示例#10
0
        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);
        }
示例#11
0
 public WindowsService()
 {
     StartupType = WindowsServiceStartupType.Manual;
 }
示例#12
0
文件: Copy.cs 项目: nbucket/bounce
 private IEnumerable<string> GetValueOf(Task<IEnumerable<string>> paths)
 {
     return paths != null ? paths.Value : null;
 }
示例#13
0
文件: Copy.cs 项目: nbucket/bounce
 public Copy(IFileSystemCopier fileSystemCopier)
 {
     FileSystemCopier = fileSystemCopier;
     DeleteToDirectory = true;
 }
示例#14
0
 public Task<string> this[Task<string> filename] {
     get {
         return new All(Root, filename).WhenBuilt(() => Path.Combine(Root.Value, filename.Value));
     }
 }
示例#15
0
        private IObsoleteTask GetInvokeRemoteDeploy(Task<string> package)
        {
            Task<string> packageAfterDeploy = GetPreparedDeployPackage(package);

            if (Deploy != null) {
                return InvokeRemoteDeploy(packageAfterDeploy);
            } else {
                return packageAfterDeploy;
            }
        }
示例#16
0
 public DirectoryFiles(Task<string> root) {
     Root = root;
 }
示例#17
0
 public ScheduledTask()
 {
     SchTasksArguments = "";
     ForceDelete = false;
     SchTasksCommandPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "schtasks.exe");
 }