Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cucumber is ready to run in OSGi containers #799

Closed
wants to merge 3 commits into from

Conversation

HendrikSP
Copy link
Contributor

I have produced 2 commits that allow to run cucumber in OSGi containers.

  • The first one adds OSGi headers to core, java and JUnit bundles.
  • The second changes the loading of the USAGE.txt in RuntimeOptions, because due to OSGi class loading cause problems. I wrote more details in the commit message.

NOTE: Please release cucumber-jvm-deps with my other pull request (see cucumber-attic/cucumber-jvm-deps#3), because this changes make only sense when the jvm-deps bundle has also OSGi headers.

Thank you!

This uses the maven felix bundle plugin.
RuntimeOptions loads the USAGE.txt on class initialization. However 
gherkin.util.FixJava is in the gherkin jar/bundle and in an OSGi 
container the class loader of FixJava does not see the text file, 
because it is located in the core jar/bundle.

Printing the usage text in an OSGi container is not needed, so the code
has been changed to lazy load the resource.
@IvanWaterman
Copy link

Hello HendrikSP, I am working on a project using OSGI (with PaxExam). For this project I am trying to run Cucumber test in an OSGI container. Your solution might be the thing I need. I downloaded your sources and I am trying to use them but I have difficulties getting it to work. Can you contact me, so that you can help me use your solution with perhaps some examples. Thanks in advances. Ivan (ivanwaterman@hotmail.com)

@HendrikSP
Copy link
Contributor Author

Hi Ivan,

I have written a cucumber-osgi module and a pax-exam example: https://github.com/HendrikSP/cucumber-jvm/tree/cucumber-osgi-idea

Comments and improvements are welcome!

Regards, Hendrik

@ghost
Copy link

ghost commented Jun 2, 2015

Any word on integrating this? I'd like to see the cucumber-osgi Maven dependency stood up for use.

@HendrikSP
Copy link
Contributor Author

I have created an updated rull request on this (#873)

@HendrikSP HendrikSP closed this Jun 5, 2015
aslakhellesoy added a commit that referenced this pull request Jul 7, 2015
@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants