Hey, I'm afraid this is currently not really possible. The custom.properties is written into the System.setProperty while the fileinstall (but I've only checked the code only shortly) does not access this sort. I think to make this available would require a patch to fileinstall.
@Everybody with more knowhow about the fileinstall internals: feel free to correct me :-) Kind regards, Andreas On Tue, Dec 11, 2012 at 10:42 AM, Bengt Rodehav <[email protected]> wrote: > I have a use case where I want to move the list of boot features (the > "featuresBoot" property) from "org.apache.karaf.features.cfg" into > "custom.properties". The reason is that our custom server comes with a > great number of features but each customer only uses some of them. To allow > for easy customisation (and upgrades) I put everything related to a > specific installation in a custom.properties file (that I put outside the > Karaf home directory). I can then easily see how this installation is > customised and I can easily upgrade by simply replacing the entire Karaf > installation and keep the customisation (since it is located outside Karaf). > > However, it seems I cannot use variables defined in "custom.properties" > in "org.apache.karaf.features.cfg". In fact, I cannot even define a > variable in "org.apache.karaf.features.cfg" and then use it in the same > file. > > How come? Isn't FileInstall used for > parsing "org.apache.karaf.features.cfg"? > > How can I use custom variables in "org.apache.karaf.features.cfg"? > > I use Karaf 2.3.0 with Java 6 on Windows 7. > > /Bengt >
