JWS2 client
authorpvtroshin <pvtroshin@e3abac25-378b-4346-85de-24260fe3988d>
Wed, 8 Jun 2011 17:42:15 +0000 (17:42 +0000)
committerpvtroshin <pvtroshin@e3abac25-378b-4346-85de-24260fe3988d>
Wed, 8 Jun 2011 17:42:15 +0000 (17:42 +0000)
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

index a0c95d1..48d107d 100644 (file)
@@ -63,8 +63,8 @@ import compbio.metadata.WrongParameterException;
 public class Jws2Client {\r
 \r
        /*\r
-        * TODO Use java.util.Logger instead of log4j logger to reduce the size of\r
-        * the client package\r
+        * Use java.util.Logger instead of log4j logger to reduce the size of the\r
+        * client package\r
         */\r
        private static final Logger log = Logger.getLogger(Jws2Client.class\r
                        .getCanonicalName());\r
@@ -107,22 +107,22 @@ public class Jws2Client {
 \r
                String hostname = CmdHelper.getHost(cmd);\r
                if (hostname == null) {\r
-                       System.out.println("Host name is not provided!");\r
+                       System.err.println("Host name is not provided!");\r
                        printUsage(1);\r
                }\r
 \r
                if (!validURL(hostname)) {\r
-                       System.out.println("Host name is not valid!");\r
+                       System.err.println("Host name is not valid!");\r
                        printUsage(1);\r
                }\r
                String serviceName = CmdHelper.getServiceName(cmd);\r
                if (serviceName == null) {\r
-                       System.out.println("Service name is no provided!");\r
+                       System.err.println("Service name is no provided!");\r
                        printUsage(1);\r
                }\r
                Services service = Services.getService(serviceName);\r
                if (service == null) {\r
-                       System.out.println("Service " + serviceName\r
+                       System.err.println("Service " + serviceName\r
                                        + " is no supported! Valid values are: "\r
                                        + Arrays.toString(Services.values()));\r
                        printUsage(1);\r
@@ -484,7 +484,7 @@ public class Jws2Client {
                        printUsage(1);\r
                }\r
                if (args.length < 2) {\r
-                       System.out.println("Host and service names are required!");\r
+                       System.err.println("Host and service names are required!");\r
                        printUsage(1);\r
                }\r
 \r