New message in execution result, SYNCOPE-158

Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/630de0af
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/630de0af
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/630de0af

Branch: refs/heads/master
Commit: 630de0af3fc5781be8a97c9077ce343ca4ba139f
Parents: e34a8e4
Author: massi <[email protected]>
Authored: Tue Dec 1 12:51:25 2015 +0100
Committer: massi <[email protected]>
Committed: Tue Dec 1 13:22:15 2015 +0100

----------------------------------------------------------------------
 .../client/cli/commands/report/ReportExecute.java     | 14 +++++++-------
 .../cli/commands/report/ReportResultManager.java      |  2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/630de0af/client/cli/src/main/java/org/apache/syncope/client/cli/commands/report/ReportExecute.java
----------------------------------------------------------------------
diff --git 
a/client/cli/src/main/java/org/apache/syncope/client/cli/commands/report/ReportExecute.java
 
b/client/cli/src/main/java/org/apache/syncope/client/cli/commands/report/ReportExecute.java
index 284ede1..72bd9c8 100644
--- 
a/client/cli/src/main/java/org/apache/syncope/client/cli/commands/report/ReportExecute.java
+++ 
b/client/cli/src/main/java/org/apache/syncope/client/cli/commands/report/ReportExecute.java
@@ -18,12 +18,9 @@
  */
 package org.apache.syncope.client.cli.commands.report;
 
-import java.util.Arrays;
-import java.util.List;
 import javax.xml.ws.WebServiceException;
 import org.apache.syncope.client.cli.Input;
 import org.apache.syncope.common.lib.SyncopeClientException;
-import org.apache.syncope.common.lib.to.ReportExecTO;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -43,10 +40,13 @@ public class ReportExecute extends AbstractReportCommand {
         if (input.parameterNumber() == 1) {
             try {
                 reportSyncopeOperations.execute(input.firstParameter());
-                final List<ReportExecTO> executionList
-                        = 
reportSyncopeOperations.read(input.firstParameter()).getExecutions();
-                final ReportExecTO lastExecution = 
executionList.get(executionList.size() - 1);
-                
reportResultManager.printReportExecution(Arrays.asList(lastExecution));
+                reportResultManager.genericMessage("Report " + 
input.firstParameter() + "executed.");
+                reportResultManager.genericMessage(
+                        "Run "
+                        + ReportCommand.ReportOptions.READ.getOptionName()
+                        + " "
+                        + input.firstParameter()
+                        + " to see the results.");
             } catch (final WebServiceException | SyncopeClientException ex) {
                 LOG.error("Error executin report", ex);
                 if (ex.getMessage().startsWith("NotFound")) {

http://git-wip-us.apache.org/repos/asf/syncope/blob/630de0af/client/cli/src/main/java/org/apache/syncope/client/cli/commands/report/ReportResultManager.java
----------------------------------------------------------------------
diff --git 
a/client/cli/src/main/java/org/apache/syncope/client/cli/commands/report/ReportResultManager.java
 
b/client/cli/src/main/java/org/apache/syncope/client/cli/commands/report/ReportResultManager.java
index 5ac14e1..150aa77 100644
--- 
a/client/cli/src/main/java/org/apache/syncope/client/cli/commands/report/ReportResultManager.java
+++ 
b/client/cli/src/main/java/org/apache/syncope/client/cli/commands/report/ReportResultManager.java
@@ -46,7 +46,7 @@ public class ReportResultManager extends CommonsResultManager 
{
         for (final AbstractReportletConf reportletConf : 
reportTO.getReportletConfs()) {
             printReportletConf(reportletConf);
         }
-        System.out.println("    EXECUTION:");
+        System.out.println("    EXECUTIONS:");
         printReportExecution(reportTO.getExecutions());
         System.out.println("");
     }

Reply via email to