From 3fac473f49368ffce6ffc0acceeace8255bc3650 Mon Sep 17 00:00:00 2001 From: pvtroshin Date: Wed, 8 Jun 2011 17:42:15 +0000 Subject: [PATCH] JWS2 client git-svn-id: link to svn.lifesci.dundee.ac.uk/svn/barton/ptroshin/JABA2@4238 e3abac25-378b-4346-85de-24260fe3988d --- webservices/compbio/ws/client/Jws2Client.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/webservices/compbio/ws/client/Jws2Client.java b/webservices/compbio/ws/client/Jws2Client.java index a0c95d1..48d107d 100644 --- a/webservices/compbio/ws/client/Jws2Client.java +++ b/webservices/compbio/ws/client/Jws2Client.java @@ -63,8 +63,8 @@ import compbio.metadata.WrongParameterException; public class Jws2Client { /* - * TODO Use java.util.Logger instead of log4j logger to reduce the size of - * the client package + * Use java.util.Logger instead of log4j logger to reduce the size of the + * client package */ private static final Logger log = Logger.getLogger(Jws2Client.class .getCanonicalName()); @@ -107,22 +107,22 @@ public class Jws2Client { String hostname = CmdHelper.getHost(cmd); if (hostname == null) { - System.out.println("Host name is not provided!"); + System.err.println("Host name is not provided!"); printUsage(1); } if (!validURL(hostname)) { - System.out.println("Host name is not valid!"); + System.err.println("Host name is not valid!"); printUsage(1); } String serviceName = CmdHelper.getServiceName(cmd); if (serviceName == null) { - System.out.println("Service name is no provided!"); + System.err.println("Service name is no provided!"); printUsage(1); } Services service = Services.getService(serviceName); if (service == null) { - System.out.println("Service " + serviceName + System.err.println("Service " + serviceName + " is no supported! Valid values are: " + Arrays.toString(Services.values())); printUsage(1); @@ -484,7 +484,7 @@ public class Jws2Client { printUsage(1); } if (args.length < 2) { - System.out.println("Host and service names are required!"); + System.err.println("Host and service names are required!"); printUsage(1); } -- 1.7.10.2