Package cs1302.tracer
Class App
java.lang.Object
cs1302.tracer.App
Stable command-line launcher that writes to the process standard streams and may terminate the JVM.
Embedding applications use
Tracer or BatchTracer.-
Method Summary
-
Method Details
-
execute
Executes a CLI invocation, returning its exit status when the selected command returns. Subcommands can terminate the calling JVM throughSystem.exit(int)on failure or a controlled stop. The environment-selected Java and compiler must be matching stable JDK 21 or later tools, and the selected JDK must be the running JVM. Environment failures return 1 with stderr diagnostics, including for help and version requests. Arguments and results follow the CLI reference. Embedding callers useTracerorBatchTracer.- Parameters:
args- Command-line arguments.- Returns:
- CLI exit status if command execution returns; not reached when a subcommand terminates the JVM.
-
main
Executes the command line and terminates the JVM with the resulting exit status.- Parameters:
args- Command-line arguments.- Throws:
Exception- If command-line startup fails.
-