On 11-02-16 03:01 PM, Jean-Baptiste Onofré wrote:
Doesn't it look like a kind of profile ? :)
Without joke, the fact to define a specific behavior for a given Karaf
instance could be a profile.
I've been kind of letting the manual in the distribution itself guide
me, and the only reference I find there to profile is the verb rather
than the noun. Expanding my search further, to the Karaf site, still no
luck. I found reference in r4.core.pdf from the specifications site,
but, only very briefly, and I got the impression that it's used to mess
with the jvm itself. It also said that the bundle itself has to specify
profile, which would be the opposite direction from what I want. I also
looked at the r4 compendium and r4.enterprise, didn't find it there.
Then I peeked at maven, which does have the concept of profile, but
doesn't really help me : I have lots of techniques available for
composition and specification on the pom side, not just profiles but
also techniques of aggregation or inheritance, many of which would lead
to decent clean-ness on the dependency specification side. But the
problem is after that, specifying startup order...
Apologies if there's a karaf take on profile that I couldn't find. If
so, could you provide a link to The Fine Manual for me to Read? :)
I planned to add a section in the roadmap wiki page to distinguish:
- usage of features
- usage of kar
- the karaf profile background
I think I'm getting to the roadmap incorrectly too, I get a 404...
Anyway Jamie, your proposal is interesting. Did you try to use the
etc/custom.properties for that ? The custom.properties file has been
introduced especially for custom configuration of a Karaf instance.
I peeked at it but from what I understand it's for overriding already
existing properties (since the system wouldn't know how to use unknown
properties), and I'm ok with startup.properties being, at least, one of
the files that is parsed to start bundles. Which means whether I set
the property in custom.properties or config.properties, the result is
the same..
-Jamie