Added support for // {NewFeature} tag for features newer than Java 8
This commit is contained in:
parent
816c30e912
commit
9706bfaa65
@ -26,6 +26,7 @@ class TaggingPlugin implements Plugin<Project> {
|
|||||||
|
|
||||||
// Exclude java sources that will not compile
|
// Exclude java sources that will not compile
|
||||||
if (tags.willNotCompile
|
if (tags.willNotCompile
|
||||||
|
|| tags.newFeature // Uses a feature introduced after Java 8
|
||||||
|| (tags.lowLevelAppendix && runningInAppveyor) // Exclude entire lowlevel appendix
|
|| (tags.lowLevelAppendix && runningInAppveyor) // Exclude entire lowlevel appendix
|
||||||
|| (tags.excludeFromAppveyorCI && runningInAppveyor)
|
|| (tags.excludeFromAppveyorCI && runningInAppveyor)
|
||||||
|| (tags.excludeFromTravisCI && runningInTravis)
|
|| (tags.excludeFromTravisCI && runningInTravis)
|
||||||
|
@ -10,6 +10,7 @@ class Tags {
|
|||||||
Boolean throwsException = false
|
Boolean throwsException = false
|
||||||
Boolean errorOutputExpected = false
|
Boolean errorOutputExpected = false
|
||||||
Boolean excludeFromGradle = false
|
Boolean excludeFromGradle = false
|
||||||
|
Boolean newFeature = false // For language feature introduced after Java 8
|
||||||
Boolean ignoreOutput = false // This tag isn't used in the build...
|
Boolean ignoreOutput = false // This tag isn't used in the build...
|
||||||
String fileRoot
|
String fileRoot
|
||||||
String mainClass
|
String mainClass
|
||||||
@ -45,6 +46,7 @@ class Tags {
|
|||||||
throwsException = hasTag('ThrowsException')
|
throwsException = hasTag('ThrowsException')
|
||||||
errorOutputExpected = hasTag('ErrorOutputExpected')
|
errorOutputExpected = hasTag('ErrorOutputExpected')
|
||||||
excludeFromGradle = hasTag('ExcludeFromGradle')
|
excludeFromGradle = hasTag('ExcludeFromGradle')
|
||||||
|
newFeature = hasTag('NewFeature')
|
||||||
ignoreOutput = hasTag('IgnoreOutput')
|
ignoreOutput = hasTag('IgnoreOutput')
|
||||||
javap = extract('javap') // Includes only arguments to command
|
javap = extract('javap') // Includes only arguments to command
|
||||||
runFirst = extract('RunFirst:')
|
runFirst = extract('RunFirst:')
|
||||||
@ -83,6 +85,7 @@ class Tags {
|
|||||||
throwsException ||
|
throwsException ||
|
||||||
errorOutputExpected ||
|
errorOutputExpected ||
|
||||||
excludeFromGradle ||
|
excludeFromGradle ||
|
||||||
|
newFeature ||
|
||||||
ignoreOutput ||
|
ignoreOutput ||
|
||||||
javaCmd ||
|
javaCmd ||
|
||||||
args ||
|
args ||
|
||||||
@ -105,6 +108,7 @@ class Tags {
|
|||||||
throwsException
|
throwsException
|
||||||
errorOutputExpected
|
errorOutputExpected
|
||||||
excludeFromGradle
|
excludeFromGradle
|
||||||
|
newFeature
|
||||||
ignoreOutput
|
ignoreOutput
|
||||||
fileRoot
|
fileRoot
|
||||||
mainClass
|
mainClass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user