Add useful startup information.
This commit is contained in:
parent
c13344d0e2
commit
5fe71670e2
2 changed files with 11 additions and 4 deletions
|
|
@ -132,7 +132,11 @@ public class Manager extends Component {
|
||||||
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
|
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
try {
|
try {
|
||||||
Logger.getLogger(Manager.class.getName()).fine(() -> "Version: "
|
var logger = Logger.getLogger(Manager.class.getName());
|
||||||
|
logger.fine(() -> "Running on " + System.getProperty("java.vm.name")
|
||||||
|
+ " (" + System.getProperty("java.vm.version") + ")"
|
||||||
|
+ " from " + System.getProperty("java.vm.vendor"));
|
||||||
|
logger.fine(() -> "Version: "
|
||||||
+ Manager.class.getPackage().getImplementationVersion());
|
+ Manager.class.getPackage().getImplementationVersion());
|
||||||
|
|
||||||
// Parse the command line arguments
|
// Parse the command line arguments
|
||||||
|
|
|
||||||
|
|
@ -576,9 +576,12 @@ public class Runner extends Component {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
// The Runner is the root component
|
// The Runner is the root component
|
||||||
try {
|
try {
|
||||||
Logger.getLogger(Runner.class.getName())
|
var logger = Logger.getLogger(Runner.class.getName());
|
||||||
.fine(() -> "Version: "
|
logger.fine(() -> "Running on " + System.getProperty("java.vm.name")
|
||||||
+ Runner.class.getPackage().getImplementationVersion());
|
+ " (" + System.getProperty("java.vm.version") + ")"
|
||||||
|
+ " from " + System.getProperty("java.vm.vendor"));
|
||||||
|
logger.fine(() -> "Version: "
|
||||||
|
+ Runner.class.getPackage().getImplementationVersion());
|
||||||
CommandLineParser parser = new DefaultParser();
|
CommandLineParser parser = new DefaultParser();
|
||||||
// parse the command line arguments
|
// parse the command line arguments
|
||||||
final Options options = new Options();
|
final Options options = new Options();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue