diff options
Diffstat (limited to 'java/test/Ice/exceptions/Client.java')
-rw-r--r-- | java/test/Ice/exceptions/Client.java | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/java/test/Ice/exceptions/Client.java b/java/test/Ice/exceptions/Client.java new file mode 100644 index 00000000000..b60db562a10 --- /dev/null +++ b/java/test/Ice/exceptions/Client.java @@ -0,0 +1,53 @@ +// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +public class Client +{ + private static int + run(String[] args, Ice.Communicator communicator) + { + ThrowerPrx thrower = AllTests.allTests(communicator, false); + thrower.shutdown(); + return 0; + } + + public static void + main(String[] args) + { + int status = 0; + Ice.Communicator communicator = null; + + try + { + communicator = Ice.Util.initialize(args); + status = run(args, communicator); + } + catch (Ice.LocalException ex) + { + ex.printStackTrace(); + status = 1; + } + + if (communicator != null) + { + try + { + communicator.destroy(); + } + catch (Ice.LocalException ex) + { + ex.printStackTrace(); + status = 1; + } + } + + System.exit(status); + } +} |