Changed exec to javap

This commit is contained in:
Bruce Eckel 2016-07-28 16:47:35 -06:00
parent dc3172ce90
commit 0c45f7e1eb
4 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@ class Tags {
String javaCmd = null
List<String> args = []
List<String> jVMArgs = []
String exec = null
String javap = null
String runFirst = null
String outputLine = null
private List<String> lines
@ -41,7 +41,7 @@ class Tags {
errorOutputExpected = hasTag('ErrorOutputExpected')
validateByHand = hasTag('ValidateByHand')
ignoreOutput = hasTag('IgnoreOutput')
exec = extract('Exec:')
javap = extract('javap') # Includes only arguments to command
runFirst = extract('RunFirst:')
lines.each {
if(it =~ /\\/* Output:/) {
@ -77,7 +77,7 @@ class Tags {
javaCmd ||
args ||
jVMArgs ||
exec ||
javap ||
runFirst
}
public String toString() {
@ -99,7 +99,7 @@ class Tags {
javaCmd
args
jVMArgs
exec
javap
runFirst
""".split().each { str ->
if(this[str])

View File

@ -2,7 +2,7 @@
// (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
// {Exec: javap -c LikeClasses}
// {javap -c LikeClasses}
enum LikeClasses {
WINKEN {

View File

@ -3,7 +3,7 @@
// We make no guarantees that this code is fit for any purpose.
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
// Demonstrates standard I/O redirection
// {Exec: javap -cp build/classes/main OSExecuteDemo}
// {javap -cp build/classes/main OSExecuteDemo}
import onjava.*;
public class OSExecuteDemo {}

View File

@ -2,7 +2,7 @@
// (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
// {Exec: javap -c Atomicity}
// {javap -c Atomicity}
public class Atomicity {
int i;