Author: btellier
Date: Fri Jul 17 09:11:04 2015
New Revision: 1691502
URL: http://svn.apache.org/r1691502
Log:
JAMES-1584 correcting StopWatch use
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=1691502&r1=1691501&r2=1691502&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
Fri Jul 17 09:11:04 2015
@@ -82,10 +82,11 @@ public class ServerCmd {
CommandLine cmd = parseCommandLine(args);
CmdType cmdType =new ServerCmd(new
JmxServerProbe(cmd.getOptionValue(HOST_OPT_LONG), getPort(cmd)))
.executeCommandLine(cmd);
- stopWatch.stop();
+ stopWatch.split();
print(new String[] { Joiner.on(' ')
.join(cmdType.getCommand(), "command executed sucessfully
in", stopWatch.getSplitTime(), "ms.")},
System.out);
+ stopWatch.stop();
System.exit(0);
} catch (JamesCliException e) {
failWithMessage(e.getMessage());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]