Skip to content

Commit fddfa8b

Browse files
committed
added debug flag
1 parent fd2593b commit fddfa8b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import org.apache.tools.ant.util.TeeOutputStream
2+
boolean debug = false
23

34
class Tags {
45
Boolean mainMethod = false
@@ -124,7 +125,7 @@ subprojects {
124125
if (it.name.endsWith('.java')) {
125126

126127
Tags tags = new Tags(it.readLines())
127-
// if(tags.hasTags()) println tags // Trace output for debugging
128+
if(debug && tags.hasTags()) println tags
128129

129130
// Add tasks for java sources with main methods
130131
if ((tags.mainMethod || tags.javaCmd) && (!tags.compileTimeError)) {

0 commit comments

Comments
 (0)