james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject svn commit: r1691897 - /james/server/trunk/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java
Date Mon, 20 Jul 2015 09:23:23 GMT
Author: btellier
Date: Mon Jul 20 09:23:23 2015
New Revision: 1691897

URL: http://svn.apache.org/r1691897
Log:
JAMES-1590 containsdomain should have an output

Modified:
    james/server/trunk/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java

Modified: james/server/trunk/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java
URL: http://svn.apache.org/viewvc/james/server/trunk/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java?rev=1691897&r1=1691896&r2=1691897&view=diff
==============================================================================
--- james/server/trunk/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java (original)
+++ james/server/trunk/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java Mon
Jul 20 09:23:23 2015
@@ -169,7 +169,11 @@ public class ServerCmd {
             probe.removeDomain(arguments[1]);
             break;
         case CONTAINSDOMAIN:
-            probe.containsDomain(arguments[1]);
+            if (probe.containsDomain(arguments[1])) {
+                System.out.println(arguments[1] + " exists");
+            } else {
+                System.out.println(arguments[1] + " does not exists");
+            }
             break;
         case LISTDOMAINS:
             print(probe.listDomains(), System.out);



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message