Skip to content

Commit 078cede

Browse files
committed
Debugging can be controlled from the command line
1 parent d70ab5d commit 078cede

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

buildSrc/src/main/groovy/com/mindviewinc/plugins/TaggingPlugin.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ import org.gradle.internal.jvm.Jvm
88
import org.apache.tools.ant.util.TeeOutputStream
99

1010
class TaggingPlugin implements Plugin<Project> {
11+
private final static String DEBUG_PROJECT_PROPERTY_KEY = 'debug'
12+
1113
void apply(Project project) {
12-
boolean debug = false
14+
boolean debug = project.hasProperty(DEBUG_PROJECT_PROPERTY_KEY) ? Boolean.valueOf(project.getProperty(DEBUG_PROJECT_PROPERTY_KEY)) : false
1315
List createdTasks = []
1416

1517
project.projectDir.eachFileRecurse { file ->

0 commit comments

Comments
 (0)