Re: Setting framework property at command line

2013-11-05 Thread Chetan Mehrotra
On Tue, Nov 5, 2013 at 7:36 PM, Felix Meschberger wrote: > This is obviously wrong and must be fixed. Created the issue SLING-3231 [1] for this. For now the patch just creates the key in parseCommandLine like Da1 regards Chetan [1] https://issues.apache.org/jira/browse/SLING-3231 Chetan Mehrotr

Re: Setting framework property at command line

2013-11-05 Thread Felix Meschberger
Hi Yes, this is a bug in the Main.parseCommandLine method: This iterates the command line and creates a map where the parameters are the keys and the parameter values are the values. This folds all -D parameters into a single key-value pair just sticking with the last. This is obviously wrong a

Setting framework property at command line

2013-11-05 Thread Chetan Mehrotra
Hi, Looking at Sling Launchpad docs [1] it mentions that one can set framework property via -D n=v pair. I tried passing multiple properties like * -D a1=b1 -D a2=b2 * -Da1=b1 -Da2=b2 In both cases only the last property is set while the others are ignored. is there any other way it should be se