Skip to content

Commit fe1aac1

Browse files
committed
Replace "CompileTimeError" with "Will Not Compile"
1 parent 69e3fca commit fe1aac1

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import org.apache.tools.ant.util.TeeOutputStream
99

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

1717
project.projectDir.eachFileRecurse { file ->
@@ -21,7 +21,7 @@ class TaggingPlugin implements Plugin<Project> {
2121
if(debug && tags.hasTags()) println tags
2222

2323
// Exclude java sources that will not compile
24-
if (tags.compileTimeError) {
24+
if (tags.willNotCompile) {
2525
project.sourceSets.main.java.excludes.add(file.name)
2626
} else {
2727
JavaExec javaTask = null
@@ -76,9 +76,9 @@ class TaggingPlugin implements Plugin<Project> {
7676
}
7777
}
7878
}
79-
79+
8080
project.tasks.create('run') {
8181
dependsOn createdTasks
8282
}
8383
}
84-
}
84+
}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.mindviewinc.plugins
22

33
class Tags {
44
Boolean hasMainMethod = false
5-
Boolean compileTimeError = false
5+
Boolean willNotCompile = false
66
Boolean throwsException = false
77
Boolean errorOutputExpected = false
88
Boolean validateByHand = false
@@ -33,7 +33,7 @@ class Tags {
3333
else
3434
args << p
3535
}
36-
compileTimeError = hasTag('CompileTimeError')
36+
willNotCompile = hasTag('WillNotCompile')
3737
throwsException = hasTag('ThrowsException')
3838
errorOutputExpected = hasTag('ErrorOutputExpected')
3939
validateByHand = hasTag('ValidateByHand')
@@ -68,7 +68,7 @@ class Tags {
6868
}
6969
}
7070
public boolean hasTags() {
71-
return compileTimeError ||
71+
return willNotCompile ||
7272
throwsException ||
7373
errorOutputExpected ||
7474
validateByHand ||
@@ -87,7 +87,7 @@ class Tags {
8787
}
8888
"""
8989
hasMainMethod
90-
compileTimeError
90+
willNotCompile
9191
throwsException
9292
errorOutputExpected
9393
validateByHand
@@ -105,4 +105,4 @@ class Tags {
105105
}
106106
result
107107
}
108-
}
108+
}

0 commit comments

Comments
 (0)