Skip to content

Commit

Permalink
Ensured that Buildr is able to build the Java SDK even if the .jar fi…
Browse files Browse the repository at this point in the history
…le doesn't exist.
  • Loading branch information
artob committed Oct 16, 2010
1 parent 3a4db8d commit ba721d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/java/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
include OpenCoinage

require 'java' # @see http://jruby.org/
require File.join(File.dirname(__FILE__), '..', '..', 'pkg', 'java', "opencoinage-#{OpenCoinage::VERSION}.jar")
begin
require File.join(File.dirname(__FILE__), '..', '..', 'pkg', 'java', "opencoinage-#{OpenCoinage::VERSION}.jar")
rescue LoadError => e
warn e
end

0 comments on commit ba721d8

Please sign in to comment.