RE : Scripting felix

2011-10-19 Thread DEBROUX Lionel
Hello, > I am currently writing a small shell script which is supposed to run > felix, install the necessary bundles with gogo, then quit and package > felix for deployment on our integration servers. > > [snip] If you are using Maven, and your bundles are deployed in Maven repositories (besides b

Re: Scripting felix

2011-10-19 Thread Richard S. Hall
On 10/19/11 03:24 , Sam Spycher wrote: Hi I am currently writing a small shell script which is supposed to run felix, install the necessary bundles with gogo, then quit and package felix for deployment on our integration servers. Unfortunately, felix seems to undeploy the deployed bundles when

Re: Scripting felix

2011-10-19 Thread Karl Pauls
On Wed, Oct 19, 2011 at 5:23 PM, Richard S. Hall wrote: > On 10/19/11 03:24 , Sam Spycher wrote: >> >> Hi >> >> I am currently writing a small shell script which is supposed to run >> felix, install the necessary bundles with gogo, then quit and package >> felix for deployment on our integration s

Re: Scripting felix

2011-10-19 Thread Sam Spycher
Hi Richard, I am running a bash script which sends some gogo deployment commands to install some bundles in felix. I then list the bundles I just deployed with gogo with the command 'lb'. These bundles are all correctly displayed and have their state set to active. At the end of the script Felix t

Re: Scripting felix

2011-10-19 Thread Richard S. Hall
On 10/19/11 11:39 , Sam Spycher wrote: Hi Richard, I am running a bash script which sends some gogo deployment commands to install some bundles in felix. I then list the bundles I just deployed with gogo with the command 'lb'. These bundles are all correctly displayed and have their state set to

Re: Scripting felix

2011-10-19 Thread Sam Spycher
Hi Karl It is true that I haven't done anything cache-wise at all! Do I need to configure this in some special way? The cache location is at default. In fact, I haven't changed anything at all in config.properties. The working directory of the script is the felix root directory. Best regards, Sa

Re: Scripting felix

2011-10-19 Thread Sam Spycher
Hmm, that is interesting. When I deploy felix via script, I can observe the creation of a directory called '-' in the working directory while the script is executing. Looking at the contents of '-', I find bundleX subdirectories just as is to be expected from the felix cache. Indeed if i cat the

Re: Scripting felix

2011-10-19 Thread Sam Spycher
P.S. Just wanted to mention also that there is no urgency to this issue, at least not to me personally. Since I have proceeded in the meantime by adding our project bundles with maven copy-dependencies per Lionel's recommendations, and test-running felix afterwards, the only disadvantage I have a

Re: Scripting felix

2011-10-19 Thread Richard S. Hall
On 10/19/11 12:09 , Sam Spycher wrote: Hmm, that is interesting. When I deploy felix via script, I can observe the creation of a directory called '-' in the working directory while the script is executing. Looking at the contents of '-', I find bundleX subdirectories just as is to be expected f

Re: Scripting felix

2011-10-19 Thread Sam Spycher
Hi everybody I'm sorry, this has really been much ado about something very small :( My mistake was a typo. I oversaw a small dash right in front of the heredoc marker in the script: java -verbose -jar bin/felix.jar - <<-END_GOGO_SCRIPT_STARTUP Thanks to Richard and Karl for bringing up the feli

Re: Scripting felix

2011-10-19 Thread Richard S. Hall
On 10/19/11 13:38 , Sam Spycher wrote: Hi everybody I'm sorry, this has really been much ado about something very small :( My mistake was a typo. I oversaw a small dash right in front of the heredoc marker in the script: java -verbose -jar bin/felix.jar -<<-END_GOGO_SCRIPT_STARTUP Makes sens

Re: Scripting felix

2010-04-13 Thread Guillaume Nodet
Are you trying to have karaf automatically installed as a service using wrapper:install ? The problem is that you need to launch it the first time in order to install and launch the commands. It might be possible do have that done from the outside: we already do that for the etc/admin shell which c

Re: RE : Scripting felix

2011-10-19 Thread Sam Spycher
Hi Lionel & felix users, Thanks for the example given, you are right, we are using Maven. I am currently adding base depencies by using copy-dependencies as you describe. But I am not using some of the additional maven niceties you are demonstrating, so thanks for the pointers. What I like about

RE : RE : Scripting felix

2011-10-19 Thread DEBROUX Lionel
Hi again, > Thanks for the example given, you are right, we are using Maven. I am > currently adding base depencies by using copy-dependencies as you > describe. But I am not using some of the additional maven niceties > you are demonstrating, so thanks for the pointers. You're welcome. > What I