On 3/8/11 2:54 PM, Alexey Loubyansky wrote:
I'll add it to the testsuite and look into it.
BTW, if you want the latest syntax proposed on the ml, it's in my branch
cli-slash-syntax
https://github.com/aloubyansky/jboss-as/commit/af26dff4e284bbeb3d7e3d2632...
Cool. :-) Is that ready to merge, or just for me to play with?
On 03/08/2011 06:55 PM, Brian Stansberry wrote:
> I find myself using the CLI a lot for quick testing, so I'm trying out
> some fairly complex operations.
>
> This one doesn't work:
>
> [~]
>
:composite(steps=[{"operation"=>"add-system-property","name"=>"test","value"="newValue"},{"operation"=>"add-system-property","name"=>"test2","value"=>"test2"}])
>
>
> Argument name '"name"' is not a valid identifier or the format is
wrong
> for the argument list.
>
> This one does, so I know the ability to create a dmr ModelNode from a
> param value is still there.
>
> [~] :add-namespace(namespace={"test"=>"test"})
> {
> "outcome" => "success",
> "result" => undefined,
> "compensating-operation" => {
> "operation" => "remove-namespace",
> "address" => [],
> "namespace" => "test"
> }
> }
>
> I think the issue is the parser is searching for indexOf(',') as the way
> to decide the end of a parameter name/value pair. It's probably going to
> need to be more of a state-machine kind of thing where chars are read
> one at a time and trigger state transitions.
>
--
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat