On 05/15/2013 03:42 PM, Max Rydahl Andersen wrote:
> On Wed, May 15, 2013 at 08:23:18AM -0700, James R. Perkins wrote:
>> Being able to run a CLI script on a server from the IDE would be pretty awesome.
Do you guys use the CLI public API at all? If not that would work quite well for a feature
like this.
>
> what is the public API ?
> I just know about jboss-cli executable that can take parameters.
> I assume all this .cli stuff is done via these ?
For some reason I didn't think about just passing the script to the executable JAR :)
It would require a process to be launched though. Maybe that easy in an eclipse plugin
though.
Yeah - and it's in many cases preferable since it won't be able to leak memory
etc. also if it uses JBoss modules it can't run embedded in a jvm without a bunch of
hacks.
>
> Is that the API you think we should use if we did this ?
No I was thinking more about this one
https://community.jboss.org/wiki/JBossAS7Command-linePublicAPI. I use it in the maven and
forge plugins to execute commands on the server. It works out quite well and you don't
have to use the same version as the target runtime.
Interesting - but it does require cli jars in addition to the normal management client,
right ?
/max
>
> p.s. We don't bundle any jboss-cli jars in our tools since we would proably
> need one for each version (EAP 6.0,6.1, AS7.0, AS7.1. etc)
> /max
>
>> On 05/15/2013 03:26 AM, Max Rydahl Andersen wrote:
>>> ...are these scripts *required* to run the examples the projects ?
>>> Or are they just custom goals you can run as a one-off to change the server
or would they *always* be executed ?
>>>
>>> And i'm wondering if we should add a "Run on server" feature in
eclipse to
>>> run these easily from the IDE against a server already configured...
>>>
>>> /max
--
James R. Perkins
JBoss by Red Hat