Changed exec to javap
This commit is contained in:
parent
dc3172ce90
commit
0c45f7e1eb
@ -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])
|
||||
|
@ -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 {
|
||||
|
@ -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 {}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user