File tree Expand file tree Collapse file tree 19 files changed +26
-24
lines changed
buildSrc/src/main/groovy/com/mindviewinc/plugins Expand file tree Collapse file tree 19 files changed +26
-24
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class TaggingPlugin implements Plugin<Project> {
58
58
File errFile = new File (file. parentFile, baseName + ' .err' )
59
59
60
60
javaTask. configure {
61
- ignoreExitValue = tags. validateByHand || tags. throwsException
61
+ ignoreExitValue = tags. excludeFromGradle || tags. throwsException
62
62
doFirst {
63
63
if (outFile. exists())
64
64
outFile. delete()
@@ -77,7 +77,7 @@ class TaggingPlugin implements Plugin<Project> {
77
77
}
78
78
}
79
79
80
- if (! tags. validateByHand ) {
80
+ if (! tags. excludeFromGradle ) {
81
81
// Only add tasks that we know we can run successfully to the task list
82
82
createdTasks. add(javaTask)
83
83
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class Tags {
9
9
Boolean lowLevelAppendix = false
10
10
Boolean throwsException = false
11
11
Boolean errorOutputExpected = false
12
- Boolean validateByHand = false
12
+ Boolean excludeFromGradle = false
13
13
Boolean ignoreOutput = false // This tag isn't used in the build...
14
14
String fileRoot
15
15
String mainClass
@@ -44,7 +44,7 @@ class Tags {
44
44
lowLevelAppendix = firstLine. contains(" // lowlevel/" )
45
45
throwsException = hasTag(' ThrowsException' )
46
46
errorOutputExpected = hasTag(' ErrorOutputExpected' )
47
- validateByHand = hasTag(' ValidateByHand ' )
47
+ excludeFromGradle = hasTag(' ExcludeFromGradle ' )
48
48
ignoreOutput = hasTag(' IgnoreOutput' )
49
49
javap = extract(' javap' ) // Includes only arguments to command
50
50
runFirst = extract(' RunFirst:' )
@@ -82,7 +82,7 @@ class Tags {
82
82
excludeFromCI ||
83
83
throwsException ||
84
84
errorOutputExpected ||
85
- validateByHand ||
85
+ excludeFromGradle ||
86
86
ignoreOutput ||
87
87
javaCmd ||
88
88
args ||
@@ -104,7 +104,7 @@ class Tags {
104
104
excludeFromCI
105
105
throwsException
106
106
errorOutputExpected
107
- validateByHand
107
+ excludeFromGradle
108
108
ignoreOutput
109
109
fileRoot
110
110
mainClass
Original file line number Diff line number Diff line change 2
2
// (c)2017 MindView LLC: see Copyright.txt
3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
- // {ValidateByHand }
5
+ // {VisuallyInspectOutput }
6
6
import java .util .*;
7
7
8
8
public class EnvironmentVariables {
Original file line number Diff line number Diff line change 3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
5
// {java GZIPcompress GZIPcompress.java}
6
- // {ValidateByHand }
6
+ // {VisuallyInspectOutput }
7
7
import java .util .zip .*;
8
8
import java .io .*;
9
9
Original file line number Diff line number Diff line change 5
5
// Uses Zip compression to compress any
6
6
// number of files given on the command line
7
7
// {java ZipCompress ZipCompress.java}
8
- // {ValidateByHand }
8
+ // {VisuallyInspectOutput }
9
9
import java .util .zip .*;
10
10
import java .io .*;
11
11
import java .util .*;
Original file line number Diff line number Diff line change 2
2
// (c)2017 MindView LLC: see Copyright.txt
3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
- // {ValidateByHand }
5
+ // {VisuallyInspectOutput }
6
6
import java .util .*;
7
7
import java .util .concurrent .*;
8
8
import java .util .stream .*;
Original file line number Diff line number Diff line change 3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
5
// Hidden deadlock
6
- // {ValidateByHand } Gradle has trouble
6
+ // {ExcludeFromGradle } Gradle has trouble
7
7
import java .util .*;
8
8
import java .util .concurrent .*;
9
9
import onjava .Nap ;
Original file line number Diff line number Diff line change 2
2
// (c)2017 MindView LLC: see Copyright.txt
3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
- // {ValidateByHand }
5
+ // {VisuallyInspectOutput }
6
6
import java .util .*;
7
7
import java .util .stream .*;
8
8
Original file line number Diff line number Diff line change 2
2
// (c)2017 MindView LLC: see Copyright.txt
3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
- // {ValidateByHand }
5
+ // {VisuallyInspectOutput }
6
6
import java .io .IOException ;
7
7
import java .nio .file .*;
8
8
import static java .nio .file .StandardWatchEventKinds .*;
Original file line number Diff line number Diff line change 2
2
// (c)2017 MindView LLC: see Copyright.txt
3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
- // {ValidateByHand }
5
+ // {VisuallyInspectOutput }
6
6
import java .io .IOException ;
7
7
import java .nio .file .*;
8
8
import static java .nio .file .StandardWatchEventKinds .*;
Original file line number Diff line number Diff line change 2
2
// (c)2017 MindView LLC: see Copyright.txt
3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
- // {ValidateByHand }
5
+ // {VisuallyInspectOutput }
6
6
import java .io .*;
7
7
8
8
public class BasicFileOutput {
Original file line number Diff line number Diff line change 2
2
// (c)2017 MindView LLC: see Copyright.txt
3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
- // {ValidateByHand }
5
+ // {VisuallyInspectOutput }
6
6
import java .io .*;
7
7
import java .util .stream .*;
8
8
Original file line number Diff line number Diff line change 2
2
// (c)2017 MindView LLC: see Copyright.txt
3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
- // {ValidateByHand }
5
+ // {VisuallyInspectOutput }
6
6
import java .io .*;
7
7
8
8
public class FileOutputShortcut {
Original file line number Diff line number Diff line change 2
2
// (c)2017 MindView LLC: see Copyright.txt
3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
- // {ValidateByHand }
5
+ // {VisuallyInspectOutput }
6
6
import java .io .*;
7
7
8
8
public class FormattedMemoryInput {
Original file line number Diff line number Diff line change 2
2
// (c)2017 MindView LLC: see Copyright.txt
3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
- // {ValidateByHand }
5
+ // {VisuallyInspectOutput }
6
6
import java .io .*;
7
7
8
8
public class MemoryInput {
Original file line number Diff line number Diff line change 3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
5
// Testing for end of file
6
- // {ValidateByHand }
6
+ // {VisuallyInspectOutput }
7
7
import java .io .*;
8
8
9
9
public class TestEOF {
Original file line number Diff line number Diff line change 3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
5
// When threads collide
6
- // {ValidateByHand }
6
+ // {VisuallyInspectOutput }
7
7
8
8
public class EvenProducer extends IntGenerator {
9
9
private int currentEvenValue = 0 ;
Original file line number Diff line number Diff line change 2
2
// (c)2017 MindView LLC: see Copyright.txt
3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
- // {ValidateByHand } Takes a long time or hangs
5
+ // {ExcludeFromGradle } Takes a long time or hangs
6
6
import java .util .concurrent .*;
7
7
import onjava .Nap ;
8
8
Original file line number Diff line number Diff line change 3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
5
// Accidental recursion
6
- // {ValidateByHand} Throws very long exception
6
+ // {ThrowsException}
7
+ // {VisuallyInspectOutput} Throws very long exception
7
8
import java .util .*;
8
9
import java .util .stream .*;
9
10
10
11
public class InfiniteRecursion {
11
12
@ Override
12
13
public String toString () {
13
- return " InfiniteRecursion address: " + this + "\n " ;
14
+ return
15
+ " InfiniteRecursion address: " + this + "\n " ;
14
16
}
15
17
public static void main (String [] args ) {
16
18
Stream .generate (InfiniteRecursion ::new )
You can’t perform that action at this time.
0 commit comments