From 80022e09bd868e2c3c7885c0f493dbfb47f9713b Mon Sep 17 00:00:00 2001 From: Bruce Eckel Date: Thu, 4 May 2017 04:49:09 -0600 Subject: [PATCH] Exclude lowlevel appendix from Appveyor --- .../main/groovy/com/mindviewinc/plugins/TaggingPlugin.groovy | 2 +- buildSrc/src/main/groovy/com/mindviewinc/plugins/Tags.groovy | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/com/mindviewinc/plugins/TaggingPlugin.groovy b/buildSrc/src/main/groovy/com/mindviewinc/plugins/TaggingPlugin.groovy index f0f0861b..e975ca06 100644 --- a/buildSrc/src/main/groovy/com/mindviewinc/plugins/TaggingPlugin.groovy +++ b/buildSrc/src/main/groovy/com/mindviewinc/plugins/TaggingPlugin.groovy @@ -25,7 +25,7 @@ class TaggingPlugin implements Plugin { if(debug && tags.hasTags()) println tags // Exclude java sources that will not compile - if (tags.willNotCompile) { + if (tags.willNotCompile || (tags.lowLevelAppendix && runningInAppveyor)) { project.sourceSets.main.java.excludes.add(file.name) } else { JavaExec javaTask = null diff --git a/buildSrc/src/main/groovy/com/mindviewinc/plugins/Tags.groovy b/buildSrc/src/main/groovy/com/mindviewinc/plugins/Tags.groovy index 37398531..ed909a87 100644 --- a/buildSrc/src/main/groovy/com/mindviewinc/plugins/Tags.groovy +++ b/buildSrc/src/main/groovy/com/mindviewinc/plugins/Tags.groovy @@ -6,6 +6,7 @@ class Tags { Boolean excludeFromTravisCI = false Boolean excludeFromAppveyorCI = false Boolean excludeFromCI = false + Boolean lowLevelAppendix = false Boolean throwsException = false Boolean errorOutputExpected = false Boolean validateByHand = false @@ -40,6 +41,7 @@ class Tags { excludeFromTravisCI = hasTag('ExcludeFromTravisCI') excludeFromAppveyorCI = hasTag('ExcludeFromAppveyorCI') excludeFromCI = hasTag('ExcludeFromCI') + lowLevelAppendix = firstLine.contains("// lowlevel/") throwsException = hasTag('ThrowsException') errorOutputExpected = hasTag('ErrorOutputExpected') validateByHand = hasTag('ValidateByHand')