You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ace.apache.org by Wi...@bosch-si.com on 2013/07/01 15:18:48 UTC

Gogo commands

Hi Marcel 

A short question to your suggestion (there's quite enough still have to learn): 
You wrote on the wiki (https://cwiki.apache.org/confluence/display/ACE/Gogo+Shell+client+API), that only the two command cw (create workspace) and rw (remove workspace) are real shell commands. And the others only operate on the created workspace.

Does the cf command return a workspace object? And are the following commands like $w la (list artifacts) methods of the Workspace class.
Or how does this work?
Can you give me a hint, where I could read a bit more about this topic?

Thx

Greetings
Wilfried

-----Ursprüngliche Nachricht-----
Von: Wilfried.Sibla@bosch-si.com [mailto:Wilfried.Sibla@bosch-si.com] 
Gesendet: Mittwoch, 26. Juni 2013 10:24
An: users@ace.apache.org
Betreff: AW: ACE client

Hi Marcel

With the discussed gogo commands I tried to learn how to use the ACE client java API.
For implementing our own customized ACE client (containing integration code for out other services) is it recommended to use the plain java API or to "use" the REST ACE client?

Starting with using the java API worked quite good for my first steps.

If I would like to use the REST client, or at least the Workspace class, I would have setup my one project(s) similar to the REST client. It would be nearly a copy of the REST client, which I have to customize and extend to fit our needs.
Or what's your recommendation?

Danke und Grüße
Wilfried


-----Ursprüngliche Nachricht-----
Von: Marcel Offermans [mailto:marcel.offermans@luminis.nl] 
Gesendet: Mittwoch, 26. Juni 2013 01:33
An: users@ace.apache.org
Betreff: Re: ACE client

On Jun 25, 2013, at 23:33 PM, Marcel Offermans <ma...@luminis.nl> wrote:
> On Jun 25, 2013, at 17:30 , Wilfried.Sibla@bosch-si.com wrote:
> 
>> This was a good recommendation. I was able to implement a set of gogo commands to work on the ACE repo.
> 
> You're welcome!

Following up on this, I just created https://issues.apache.org/jira/browse/ACE-366 and added a first implementation of a set of shell commands. I also created a wiki page with some short documentation about it: https://cwiki.apache.org/confluence/display/ACE/Gogo+Shell+client+API

I'm curious if this is similar to the shell commands you created and what you think about it. I'm quite confident that the shell is a powerful way to script ACE.

Greetings, Marcel


AW: Gogo commands

Posted by Wi...@bosch-si.com.
Hi Marcel

Thx a lot. I already got it....

Danke und Grüße
Wilfried


-----Ursprüngliche Nachricht-----
Von: Marcel Offermans [mailto:marcel.offermans@luminis.nl] 
Gesendet: Montag, 1. Juli 2013 16:51
An: users@ace.apache.org
Betreff: Re: Gogo commands

On Jul 1, 2013, at 15:18 , Wilfried.Sibla@bosch-si.com wrote:

> A short question to your suggestion (there's quite enough still have to learn): 
> You wrote on the wiki (https://cwiki.apache.org/confluence/display/ACE/Gogo+Shell+client+API), that only the two command cw (create workspace) and rw (remove workspace) are real shell commands. And the others only operate on the created workspace.

Correct.

> Does the cf command return a workspace object?

Yes, that's what happens when I say:

w = (cw)

> And are the following commands like $w la (list artifacts) methods of the Workspace class.

Yes, methods that are invoked on the object that cw returned, and that was stored in the variable called w, so:

$w foo a b
literally invokes a method "foo" on the instance w, and tries to actually find a method that has two parameters a and b.

> Or how does this work?
> Can you give me a hint, where I could read a bit more about this topic?

Yes:
http://felix.apache.org/documentation/subprojects/apache-felix-gogo.html
http://felix.apache.org/site/rfc-147-overview.html
http://www.osgi.org/download/osgi-4.2-early-draft.pdf

Admitted, the documentation is a bit all over the place. :) On the positive side, not only Felix is using the GoGo shell, but also more recently Equinox, so if you Google a bit you usually find some more tutorials. Many things have also been discussed on the Felix mailing lists, so searching the archives might also help.

Greetings, Marcel


Re: Gogo commands

Posted by Marcel Offermans <ma...@luminis.nl>.
On Jul 1, 2013, at 15:18 , Wilfried.Sibla@bosch-si.com wrote:

> A short question to your suggestion (there's quite enough still have to learn): 
> You wrote on the wiki (https://cwiki.apache.org/confluence/display/ACE/Gogo+Shell+client+API), that only the two command cw (create workspace) and rw (remove workspace) are real shell commands. And the others only operate on the created workspace.

Correct.

> Does the cf command return a workspace object?

Yes, that's what happens when I say:

w = (cw)

> And are the following commands like $w la (list artifacts) methods of the Workspace class.

Yes, methods that are invoked on the object that cw returned, and that was stored in the variable called w, so:

$w foo a b
literally invokes a method "foo" on the instance w, and tries to actually find a method that has two parameters a and b.

> Or how does this work?
> Can you give me a hint, where I could read a bit more about this topic?

Yes:
http://felix.apache.org/documentation/subprojects/apache-felix-gogo.html
http://felix.apache.org/site/rfc-147-overview.html
http://www.osgi.org/download/osgi-4.2-early-draft.pdf

Admitted, the documentation is a bit all over the place. :) On the positive side, not only Felix is using the GoGo shell, but also more recently Equinox, so if you Google a bit you usually find some more tutorials. Many things have also been discussed on the Felix mailing lists, so searching the archives might also help.

Greetings, Marcel