summaryrefslogtreecommitdiff
path: root/java/test/IceSSL/configuration/Client.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/IceSSL/configuration/Client.java')
-rw-r--r--java/test/IceSSL/configuration/Client.java92
1 files changed, 46 insertions, 46 deletions
diff --git a/java/test/IceSSL/configuration/Client.java b/java/test/IceSSL/configuration/Client.java
index 6cb43153c90..6479e180286 100644
--- a/java/test/IceSSL/configuration/Client.java
+++ b/java/test/IceSSL/configuration/Client.java
@@ -12,63 +12,63 @@ public class Client
private static int
run(String[] args, Ice.Communicator communicator)
{
- if(args.length < 1)
- {
- System.out.println("Usage: client testdir");
- return 1;
- }
+ if(args.length < 1)
+ {
+ System.out.println("Usage: client testdir");
+ return 1;
+ }
- Test.ServerFactoryPrx factory;
+ Test.ServerFactoryPrx factory;
- //
- // If we're using the JDK 1.4 plugin, we can only use thread-per-connection.
- // Otherwise, we run the test twice, once for each concurrency model.
- //
- System.out.println("testing with thread-per-connection.");
- factory = AllTests.allTests(communicator, args[0], false);
+ //
+ // If we're using the JDK 1.4 plugin, we can only use thread-per-connection.
+ // Otherwise, we run the test twice, once for each concurrency model.
+ //
+ System.out.println("testing with thread-per-connection.");
+ factory = AllTests.allTests(communicator, args[0], false);
- if(!IceSSL.Util.jdkTarget.equals("1.4"))
- {
- System.out.println("testing with thread pool.");
- AllTests.allTests(communicator, args[0], true);
- }
+ if(!IceSSL.Util.jdkTarget.equals("1.4"))
+ {
+ System.out.println("testing with thread pool.");
+ AllTests.allTests(communicator, args[0], true);
+ }
- factory.shutdown();
+ factory.shutdown();
- return 0;
+ return 0;
}
public static void main(String[] args)
{
- int status = 0;
- Ice.Communicator communicator = null;
+ int status = 0;
+ Ice.Communicator communicator = null;
- try
- {
- Ice.StringSeqHolder argsH = new Ice.StringSeqHolder(args);
- communicator = Ice.Util.initialize(argsH);
- status = run(argsH.value, communicator);
- }
- catch(Ice.LocalException ex)
- {
- ex.printStackTrace();
- status = 1;
- }
+ try
+ {
+ Ice.StringSeqHolder argsH = new Ice.StringSeqHolder(args);
+ communicator = Ice.Util.initialize(argsH);
+ status = run(argsH.value, communicator);
+ }
+ catch(Ice.LocalException ex)
+ {
+ ex.printStackTrace();
+ status = 1;
+ }
- if(communicator != null)
- {
- try
- {
- communicator.destroy();
- }
- catch(Ice.LocalException ex)
- {
- ex.printStackTrace();
- status = 1;
- }
- }
+ if(communicator != null)
+ {
+ try
+ {
+ communicator.destroy();
+ }
+ catch(Ice.LocalException ex)
+ {
+ ex.printStackTrace();
+ status = 1;
+ }
+ }
- System.gc();
- System.exit(status);
+ System.gc();
+ System.exit(status);
}
}