On Tue, Oct 12, 2010 at 8:10 AM, Guillaume Nodet <[email protected]> wrote: > I'm not sure we should add too much of this in the features > descriptors. I think a better idea would be to start leveraging OBR > to determine the best set of dependencies for a given set of bundles > to install. If needed we could also leverage the obr url handler to > use a filter to actually select a bundle. >
How will the OBR be able to determine if the camel-jasypt feature need icu4j-4.0.1.jar or not? The icu4j-4.0.1.jar is needed on JDK 1.5. > On Tuesday, October 12, 2010, Jean-Baptiste Onofré <[email protected]> wrote: >> Hi Claus, >> >> Up to now, AFAIK, it's not possible to define a feature with JDK specific >> bundles (the descriptor is static). You can add some JRE/JDK specific >> definition in etc/jre.properties but it's global to the kernel (not >> dedicated to a given feature). >> >> Anyway, I think it's interesting. >> >> We can extend the feature deployer to support this kind of "conditions". >> >> I'm gonna raise a Jira task around this. >> >> Regards >> JB >> >> On 10/12/2010 06:16 AM, Claus Ibsen wrote: >> >> Hi >> >> I wonder if its possible in the features.xml file to define a bundle >> being qualified depending on the current JDK? >> >> For example if you run JDK 1.5 you want the bundle included. If you >> run JDK 1.6+ you do NOT. >> The option should most likely support a range similar to the OSGi versioning. >> >> Maybe something similar to this: >> <bundle jdk="[1.5,1.6)">mvn:xxx/yyy/2.2</bundle> >> >> An example would be many of the encryption frameworks which requires >> additional jars to run on JDK 1.5, where as 1.6 provides API and >> chipers out of the box. >> And we could have a similar situation when JDK 1.7 comes out. Where >> you may need additional JARs on 1.6 and not on 1.7. >> >> I could not find such information at >> http://karaf.apache.org/46-provisioning.html >> >> But it could be the documentation is outdated >> >> >> > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > ------------------------ > Open Source SOA > http://fusesource.com > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
