Contents

JCompile Java extensions

In order to avoid bitching from Enterprise users As a Ruby developer I want some rake tasks that take away the pain of compilation

Scenario: Compile single Java extension (with default Rake)

@java

  • Given that all my Java source files are in place
  • And I've installed the Java Development Kit
  • When rake task 'java compile' is invoked
  • Then rake task 'java compile' succeeded
  • And binaries for platform 'java' get generated

Scenario: Compile single Java extension (with Rake on JRuby)

@java

  • Given that all my Java source files are in place
  • And I've installed the Java Development Kit
  • When I've installed JRuby
  • When rake task 'java compile' is invoked on JRuby
  • Then rake task 'java compile' succeeded
  • And binaries for platform 'java' get generated

Source: features/java-compile.feature at commit 60589f9b, Rake Compiler (MIT license).