Karaf shell command argument with space

2012-12-06 Thread Dan Tran
Hi I would like to create a karaf command that can have a single argument with space like my:command this is my single argument with spaces karaf turns it into my:command this The work around is my: command 'this is my single argument with spaces' Would it possible to to do this w

Re: Karaf shell command argument with space

2012-12-06 Thread Jean-Baptiste Onofré
Hi Dan, no, the quote (or double quote) are required. Else gogo consider each string as argument for the command. Regards JB On 12/06/2012 09:02 AM, Dan Tran wrote: Hi I would like to create a karaf command that can have a single argument with space like my:command this is my single a

Re: Karaf shell command argument with space

2012-12-06 Thread Guillaume Nodet
Well, depending on your needs, one possible work around is to define the command as accepting a single argument with the multiple flag consisting of a List. You then have to rebuild the single argument from the string list. However, you'll loose multiple whitespaces between words. On Thu, Dec 6,

Re: Karaf shell command argument with space

2012-12-06 Thread Dan Tran
I did try 'List option, but running into another isue where my:command this is single arg "with space and quotes" Karaf takes out my quotes I can escape the quote, but then the usage becomes more complicated Thanks -Dan PS fully understanding that dealing space quote are complicated and ted

Re: Karaf shell command argument with space

2012-12-06 Thread Dan Tran
I did try 'List option, but running into another isue where my:command this is single arg "with space" Karaf takes out my quotes fully understand dealing space quote are complicated On Thu, Dec 6, 2012 at 12:18 AM, Guillaume Nodet wrote: > Well, depending on your needs, one possible work aro

RE: Enable HTTPS got "Could not generate DH keypair"

2012-12-06 Thread Guofeng Zhang
Thank you! The issue is caused by I use the older karaf script which set up JAVA_OPTS incorrectly. By update the script from karaf, the issue is solved. From: Freeman Fang [mailto:freeman.f...@gmail.com] Sent: Thursday, December 06, 2012 2:55 PM To: user@karaf.apache.org Subject: Re: Enable HTTPS

Re: Karaf shell command argument with space

2012-12-06 Thread Guillaume Nodet
The last option is to bypass the argument support. That means either subclassing the AbstractCommand and change the ActionPreparator or simply implementing Function and exporting the object as an osgi service. On Thu, Dec 6, 2012 at 9:24 AM, Dan Tran wrote: > I did try 'List option, but runnin

RE: Enable HTTPS got "Could not generate DH keypair"

2012-12-06 Thread Guofeng Zhang
Sorry. Should be “JAVA_EXT_DIRS” incorrectly. From: Guofeng Zhang Sent: Thursday, December 06, 2012 4:59 PM To: user@karaf.apache.org Subject: RE: Enable HTTPS got "Could not generate DH keypair" Thank you! The issue is caused by I use the older karaf script which set up JAVA_OPTS incorrectly. B

RE: Boot feature ... not found

2012-12-06 Thread Guofeng Zhang
My bundle require: org.osgi.service.event)(version>=1.2.0)(!(version>=2.0.0))) I add the following in jre.properties: org.xml.sax.helpers,\ org.osgi.service.event;version="1.2.0" the resolution issue resolved, but I got: java.lang.NoClassDefFoundError: org/osgi/service/event/EventAdmi