JAMES-1982 Correct punctuation spacing for CLI output
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/a281f59f Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/a281f59f Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/a281f59f Branch: refs/heads/master Commit: a281f59fdc4630b6c67a69fe8b3455d42cce543f Parents: c994be0 Author: benwa <btell...@linagora.com> Authored: Sun Apr 2 10:58:37 2017 +0700 Committer: benwa <btell...@linagora.com> Committed: Mon Apr 3 18:09:33 2017 +0700 ---------------------------------------------------------------------- .../main/java/org/apache/james/cli/ServerCmd.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/a281f59f/server/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java ---------------------------------------------------------------------- diff --git a/server/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java b/server/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java index edf86fa..a9f6e69 100644 --- a/server/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java +++ b/server/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java @@ -266,16 +266,16 @@ public class ServerCmd { printMessageQuota(arguments[1], quotaProbe.getMessageCountQuota(arguments[1]), printStream); break; case GETQUOTAROOT: - printStream.println("Quota Root : " + quotaProbe.getQuotaRoot(arguments[1], arguments[2], arguments[3])); + printStream.println("Quota Root: " + quotaProbe.getQuotaRoot(arguments[1], arguments[2], arguments[3])); break; case GETMAXSTORAGEQUOTA: printStream.println("Storage space allowed for Quota Root " + arguments[1] - + " : " + + ": " + formatStorageValue(quotaProbe.getMaxStorage(arguments[1]))); break; case GETMAXMESSAGECOUNTQUOTA: - printStream.println("MailboxMessage count allowed for Quota Root " + arguments[1] + " : " + formatMessageValue(quotaProbe.getMaxMessageCount(arguments[1]))); + printStream.println("MailboxMessage count allowed for Quota Root " + arguments[1] + ": " + formatMessageValue(quotaProbe.getMaxMessageCount(arguments[1]))); break; case SETMAXSTORAGEQUOTA: quotaProbe.setMaxStorage(arguments[1], ValueWithUnit.parse(arguments[2]).getConvertedValue()); @@ -290,10 +290,10 @@ public class ServerCmd { quotaProbe.setDefaultMaxMessageCount(Long.parseLong(arguments[1])); break; case GETDEFAULTMAXSTORAGEQUOTA: - printStream.println("Default Maximum Storage Quota : " + formatStorageValue(quotaProbe.getDefaultMaxStorage())); + printStream.println("Default Maximum Storage Quota: " + formatStorageValue(quotaProbe.getDefaultMaxStorage())); break; case GETDEFAULTMAXMESSAGECOUNTQUOTA: - printStream.println("Default Maximum message count Quota : " + formatMessageValue(quotaProbe.getDefaultMaxMessageCount())); + printStream.println("Default Maximum message count Quota: " + formatMessageValue(quotaProbe.getDefaultMaxMessageCount())); break; case REINDEXMAILBOX: mailboxProbe.reIndexMailbox(arguments[1], arguments[2], arguments[3]); @@ -308,13 +308,13 @@ public class ServerCmd { sieveProbe.setSieveQuota(arguments[1], ValueWithUnit.parse(arguments[2]).getConvertedValue()); break; case GETSIEVEQUOTA: - printStream.println("Storage space allowed for Sieve scripts by default : " + printStream.println("Storage space allowed for Sieve scripts by default: " + formatStorageValue(sieveProbe.getSieveQuota())); break; case GETSIEVEUSERQUOTA: printStream.println("Storage space allowed for " + arguments[1] - + " Sieve scripts : " + + " Sieve scripts: " + formatStorageValue(sieveProbe.getSieveQuota(arguments[1]))); break; case REMOVESIEVEQUOTA: @@ -339,14 +339,14 @@ public class ServerCmd { } private void printStorageQuota(String quotaRootString, SerializableQuota quota, PrintStream printStream) { - printStream.println(String.format("Storage quota for %s is : %s / %s", + printStream.println(String.format("Storage quota for %s is: %s / %s", quotaRootString, formatStorageValue(quota.getUsed()), formatStorageValue(quota.getMax()))); } private void printMessageQuota(String quotaRootString, SerializableQuota quota, PrintStream printStream) { - printStream.println(String.format("MailboxMessage count quota for %s is : %s / %s", + printStream.println(String.format("MailboxMessage count quota for %s is: %s / %s", quotaRootString, formatMessageValue(quota.getUsed()), formatMessageValue(quota.getMax()))); --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org