Recently I wanted to build the Gherkin project to reproduce a certain behavior we observed in SpecFlow.
These were the steps that were necessary to build the Java version of the Gherkin parser on OS X:
Ragel installation:
I am using MacPorts. Installing Ragel is a breeze:
sudo port install ragel
rvm installation
I figured that rvm is the best option to install JRuby side by side of other Rubies.
I followed the installation instructions of rvm.
JRuby installation
... again a breeze with rvm:
rvm install jruby
Switch to JRuby
rvm use jruby
Clone gherkin:
git clone http://github.com/cucumber/gherkin.git
Clone cucumber:
To build gherkin you need the cucumber sources lying beside your gherkin sources.
git clone http://github.com/cucumber/cucumber.git
Required gems:
You need some gems to build gherkin:
gem install rspec json term-ansicolor rake_compiler awesome-print builder
Java dependencies:
The rake build needs json-simple lying in your local Maven repository
cd java
mvn clean compile
Executing the rake build:
rake clean
rake jar
Executing the java build:
cd java
mvn clean compile test
No comments:
Post a Comment