Skip to content

Commit 0c45f7e

Browse files
committed
Changed exec to javap
1 parent dc3172c commit 0c45f7e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Tags {
1414
String javaCmd = null
1515
List<String> args = []
1616
List<String> jVMArgs = []
17-
String exec = null
17+
String javap = null
1818
String runFirst = null
1919
String outputLine = null
2020
private List<String> lines
@@ -41,7 +41,7 @@ class Tags {
4141
errorOutputExpected = hasTag('ErrorOutputExpected')
4242
validateByHand = hasTag('ValidateByHand')
4343
ignoreOutput = hasTag('IgnoreOutput')
44-
exec = extract('Exec:')
44+
javap = extract('javap') # Includes only arguments to command
4545
runFirst = extract('RunFirst:')
4646
lines.each {
4747
if(it =~ /\\/* Output:/) {
@@ -77,7 +77,7 @@ class Tags {
7777
javaCmd ||
7878
args ||
7979
jVMArgs ||
80-
exec ||
80+
javap ||
8181
runFirst
8282
}
8383
public String toString() {
@@ -99,7 +99,7 @@ class Tags {
9999
javaCmd
100100
args
101101
jVMArgs
102-
exec
102+
javap
103103
runFirst
104104
""".split().each { str ->
105105
if(this[str])

enums/NotClasses.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// (c)2016 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
5-
// {Exec: javap -c LikeClasses}
5+
// {javap -c LikeClasses}
66

77
enum LikeClasses {
88
WINKEN {

standardio/OSExecuteDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
55
// Demonstrates standard I/O redirection
6-
// {Exec: javap -cp build/classes/main OSExecuteDemo}
6+
// {javap -cp build/classes/main OSExecuteDemo}
77
import onjava.*;
88

99
public class OSExecuteDemo {}

threads/Atomicity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// (c)2016 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
5-
// {Exec: javap -c Atomicity}
5+
// {javap -c Atomicity}
66

77
public class Atomicity {
88
int i;

0 commit comments

Comments
 (0)