passed as env var at runtime : java -D"gosh.home"="conf/gogo" -jar
bin\felix.jar
where under felix-framework-6.0.2/conf, i made gogo/etc/gosh_profile

all good.
thx

On Fri, 10 May 2019 at 00:41, Raymond Auge <raymond.a...@liferay.com> wrote:

> a) gogo has a `source` command that will read a "gogo shell script" file.
>
> b) with the system of framework property:
>
> gosh.home=/foo
>
> You can specify a directory which contains the following structure `
> etc/gosh_profile`
> where `gosh_profile` is a text file holding a gogo shell script.
>
> Here's the canned script [1].
> Here's the code that does the work [2]
>
> HTH
> - Ray
>
> [1]
>
> https://github.com/apache/felix/blob/trunk/gogo/shell/src/main/resources/gosh_profile
> [2]
>
> https://github.com/apache/felix/blob/trunk/gogo/shell/src/main/java/org/apache/felix/gogo/shell/Shell.java#L116-L129
>
>
>
> On Thu, May 9, 2019 at 12:16 PM Alexandru Repede <
> alexandru.repede.stad...@gmail.com> wrote:
>
> > As the GoGo shell support variables, functions, commands, can it also be
> > configured to load on startup a set of these from a file?
> >
>
>
> --
> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
>  (@rotty3000)
> Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
>  (@Liferay)
> Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org>
> (@OSGiAlliance)
>

Reply via email to