Debugging can be controlled from the command line

This commit is contained in:
Benjamin Muschko 2016-11-03 07:50:03 -04:00
parent d70ab5d3cc
commit 078cede6dc

View File

@ -8,8 +8,10 @@ import org.gradle.internal.jvm.Jvm
import org.apache.tools.ant.util.TeeOutputStream import org.apache.tools.ant.util.TeeOutputStream
class TaggingPlugin implements Plugin<Project> { class TaggingPlugin implements Plugin<Project> {
private final static String DEBUG_PROJECT_PROPERTY_KEY = 'debug'
void apply(Project project) { 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 = [] List createdTasks = []
project.projectDir.eachFileRecurse { file -> project.projectDir.eachFileRecurse { file ->