Skip to content

Commit

Permalink
optionally include jars
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmries committed Jan 20, 2014
1 parent cd2fbff commit 6dc5898
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/derelicte.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
require "derelicte/version"

# Load jars
require 'jars/antlr-runtime-3.1.jar'
require 'jars/slf4j-api-1.5.2.jar'
require 'jars/slf4j-nop-1.5.2.jar'
unless defined?(::Java::OrgAntlrRuntime::Parser)
require 'jars/antlr-runtime-3.1.jar'
end
unless defined?(org.slf4j.Logger)
require 'jars/slf4j-api-1.5.2.jar'
require 'jars/slf4j-nop-1.5.2.jar'
end
require 'jars/xml-apis-1.3.04.jar'
require 'jars/jstyleparser-1.7.0.jar'
unless defined?(::Java.cz.vutbr.web.css::CSSFactory)
require 'jars/jstyleparser-1.7.0.jar'
end

# Load local classes
require 'derelicte/inliner'
Expand Down

0 comments on commit 6dc5898

Please sign in to comment.