Open ops4j-issues opened 15 years ago
Harald Wellmann commented
scan-dir: URLs support filters to select specific files, see
http://team.ops4j.org/wiki/display/paxscanner/Directory+Scanner
A filter for excluding files would solve your problem.
In the meantime, can't you solve this in your build process?
Charles Moulliard created PAXEXAM-128
I would like to use the same bundles between my testing environment
and the production. So I have used scanDir() in the options
configuration method of Pax exam to point to the folder where all my
"production" bundles are located.
I have tested it but I have conflicts (the bundle
osgi.compendium_4.1.0 is in conflict with the bundle 5 of my
directory. Idem for Apache Felix 1.8.1 which is equal to the
bundle(0)) .
Do you think that it is possible to tell PAX exam to use all my
bundles (which includes also felix, osgi.compendium) instead of the
bundles created at the startup by pax runner. Here is the list :
felix.auto.start.1=\
"file:bundles/osgi.compendium_4.1.0.build-200702212030.jar" \
"file:bundles/org.ops4j.pax.exam_1.1.1.SNAPSHOT.jar" \
"file:bundles/org.ops4j.pax.exam.junit.extender_1.1.1.SNAPSHOT.jar" \
"file:bundles/org.ops4j.pax.exam.junit.extender.impl_1.1.1.SNAPSHOT.jar" \
"file:bundles/org.ops4j.pax.url.dir_1.0.0.jar" \
"file:bundles/com.springsource.org.junit_4.4.0.jar" \
"file:bundles/org.ops4j.pax.exam.rbc_1.1.1.SNAPSHOT.jar"
SUGGESTION
Define a scanServer("location of the bundles to be loaded") function which is an extension of scanDir() to allow to scann recursively and to load only *.jar files
Add additional property to this function like the platform used --> scanServer().felix("1.6.0"). This could be helpfull for pax - exam or runner
For the configuration files used by the application which are located in etc folder (for Apache Felix Karaf), maybe we could also add a property used by the classpath loaded to load all the properties files defined
--> scanServer.config("location of the etc folder")
Votes: 0, Watches: 0