[jboss-jira] [JBoss JIRA] (WFLY-4440) CLI: Log or store results (ModelNode) in batch commands
Martin Basovnik (JIRA)
issues at jboss.org
Wed Mar 18 10:06:19 EDT 2015
[ https://issues.jboss.org/browse/WFLY-4440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051383#comment-13051383 ]
Martin Basovnik commented on WFLY-4440:
---------------------------------------
I use your API (in [jcontainer-manager|https://github.com/jboss-soa-qa/jcontainer-manager] project) similarly as [widlfly-maven-plugin|https://github.com/wildfly/wildfly-maven-plugin/blob/master/plugin/src/main/java/org/wildfly/plugin/cli/Commands.java#L172]. And it is not very straightforward to get the result. I had to use own {{CommandContext}} implementation which extended {{CommandContextImpl}}. *This issue is not a bug*.
> CLI: Log or store results (ModelNode) in batch commands
> -------------------------------------------------------
>
> Key: WFLY-4440
> URL: https://issues.jboss.org/browse/WFLY-4440
> Project: WildFly
> Issue Type: Bug
> Components: CLI
> Reporter: Martin Basovnik
> Assignee: Alexey Loubyansky
> Labels: cli, log
>
> Non-batch commands are logged with method {{ctx.printLine(result.toString());}}
> https://github.com/wildfly/wildfly-core/blob/master/cli/src/main/java/org/jboss/as/cli/handlers/OperationRequestHandler.java#L86
> Log also batch commands, e.g.
> https://github.com/wildfly/wildfly-core/blob/master/cli/src/main/java/org/jboss/as/cli/handlers/ifelse/IfElseControlFlow.java#L165
> Or use a mechanism to store the last result. I use your API and it would be usefull for me.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the jboss-jira
mailing list