ops4j / org.ops4j.pax.exam2

Pax Exam is a testing framework for OSGi
https://ops4j1.jira.com/wiki/spaces/PAXEXAM4/
Apache License 2.0
84 stars 100 forks source link

Suggestion : create a scanServer() function that we can use in configuration options of pax - exam [PAXEXAM-128] #242

Open ops4j-issues opened 15 years ago

ops4j-issues commented 15 years ago

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


Votes: 0, Watches: 0

ops4j-issues commented 13 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?