From 078cede6dce3758ce40a08abe75ef96f9d2f0efa Mon Sep 17 00:00:00 2001 From: Benjamin Muschko Date: Thu, 3 Nov 2016 07:50:03 -0400 Subject: [PATCH] Debugging can be controlled from the command line --- .../main/groovy/com/mindviewinc/plugins/TaggingPlugin.groovy | 4 +++- 1 file 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 0d1cef8b..5b917902 100644 --- a/buildSrc/src/main/groovy/com/mindviewinc/plugins/TaggingPlugin.groovy +++ b/buildSrc/src/main/groovy/com/mindviewinc/plugins/TaggingPlugin.groovy @@ -8,8 +8,10 @@ import org.gradle.internal.jvm.Jvm import org.apache.tools.ant.util.TeeOutputStream class TaggingPlugin implements Plugin { + private final static String DEBUG_PROJECT_PROPERTY_KEY = 'debug' + void apply(Project project) { - boolean debug = false + boolean debug = project.hasProperty(DEBUG_PROJECT_PROPERTY_KEY) ? Boolean.valueOf(project.getProperty(DEBUG_PROJECT_PROPERTY_KEY)) : false List createdTasks = [] project.projectDir.eachFileRecurse { file ->