Skip to content

Commit

Permalink
Merge pull request #183 from cake-contrib/feature/GH-182
Browse files Browse the repository at this point in the history
(GH-182) Added Windows Criteria
  • Loading branch information
gep13 committed Dec 10, 2017
2 parents 0b0feea + 027d89d commit f34636c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cake.Recipe/Content/analyzing.cake
Expand Up @@ -25,6 +25,7 @@ public void LaunchDefaultProgram(FilePath file) {
}

BuildParameters.Tasks.DupFinderTask = Task("DupFinder")
.WithCriteria(() => BuildParameters.IsRunningOnWindows)
.WithCriteria(() => BuildParameters.ShouldRunDupFinder)
.Does(() => RequireTool(ReSharperTools, () => {
var settings = new DupFinderSettings() {
Expand Down Expand Up @@ -76,6 +77,7 @@ BuildParameters.Tasks.DupFinderTask = Task("DupFinder")
});

BuildParameters.Tasks.InspectCodeTask = Task("InspectCode")
.WithCriteria(() => BuildParameters.IsRunningOnWindows)
.WithCriteria(() => BuildParameters.ShouldRunInspectCode)
.Does(() => RequireTool(ReSharperTools, () => {
var settings = new InspectCodeSettings() {
Expand Down

0 comments on commit f34636c

Please sign in to comment.