cucumber/cucumber-java-skeleton — pull request #4 by ralphkjones (2014-08-03 22:01:46+00:00)
Title: Cucumber skeleton as one jar java application

Easy skeleton project to run my cucumber jvm in a one jar configuration as a java application. I don’t want to use maven or jUnit. I want tot be able to drop my jar in its destination and run with myRunIt.bat. And then after test delete the jara and bat/sh file

java -Xdebug -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n -jar target/cukeTest.one-jar.jar

Right now my problem is that the one jar class loader doesn’t seem to recognize my glue. Dies in java.util.Comparator when trying to find skeleton.Stepdefs

Added pickle.java to access stepdefs before junit is called

One jar code is included in the one jar when the pom.xml is accessed

Through

Mvn clean install

Mvn test works
Running as a jUnit test through eclipse works

But running as a one jar does not work

Debug by running

java -Xdebug -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=y -jar target/cukeTest.one-jar.jar