The system.properties fle is great for properties which should be changed by a "customer"; Basically I'm working no KARAF-222 (at least indirectly). Currently you configure where to find the .tar.gz and the .zip file, which are the scripts and then say plugin:run; BUT some things, like wicket e.g. require additional properties to enable debug... Mhm, maybe I simply chose the wrong name? How does KARAF_DEBUG_ADDITIONS feel?
kind regards, andreas On Fri, Dec 31, 2010 at 06:45:32PM +0800, Freeman Fang wrote: > Hi Andreas, > > We already have system.properties in KARAF_HOME/etc folder, how > about also put other customer system properties in that file? > > Regards > Freeman > On 2010-12-31, at 下午6:27, Andreas Pieber wrote: > > >Hey, > > > >Currently I have the use case that I have to set additional > >sys_vars in karaf > >(those -Dthings). In specific, to set wicket to development mode I > >have to add a > >-Dwicket.configuration=development. BUT I don't want to set those > >options > >directly in the script (karaf.bat/".sh"). > > > >My idea was to add a KARAF_OPTS var which is used during calling > >the script. > >Then you can do: > > > >export KARAF_OPTS=-Dwicket.configuration=development > >bin/karaf > > > >The changes are quite trivial (see patch; applies to karaf-2.1.x; > >but should > >also apply to master IMHO). If you do not export KARAF_OPTS the > >part is simply > >empty and will not change the behaviour, otherwise you can add > >system props as you > >like. > > > >Is there a better way? WDYT? > > > >kind regards, > >andreas > > > ><karaf_opts.patch> > > > -- > Freeman Fang > > ------------------------ > > FuseSource: http://fusesource.com > blog: http://freemanfang.blogspot.com > twitter: http://twitter.com/freemanfang > Apache Servicemix:http://servicemix.apache.org > Apache Cxf: http://cxf.apache.org > Apache Karaf: http://karaf.apache.org > Apache Felix: http://felix.apache.org >
pgpyhqApg2fFD.pgp
Description: PGP signature
