Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding warbler custom jars

  • Loading branch information...
commit 003074f2e13636ca28f8b7a259faed7b64b9485d 1 parent bde4093
@fabiokung fabiokung authored
Showing with 19 additions and 0 deletions.
  1. +7 −0 lib/jetty_rails/runner.rb
  2. +12 −0 lib/jetty_rails/warbler_reader.rb
View
7 lib/jetty_rails/runner.rb
@@ -18,6 +18,13 @@ def initialize(config = {})
add_server(server_config)
end
end
+
+ read_warble_config if File.exists?("#{config[:base]}/config/warble.rb")
+ end
+
+ def read_warble_config
+ require 'warbler'
+ WarblerReader.new(config)
end
def add_server(config = {})
View
12 lib/jetty_rails/warbler_reader.rb
@@ -0,0 +1,12 @@
+class WarblerReader
+ attr_reader :config
+
+ def initialize
+ config = load("#{config[:base]}/config/warble.rb")
+ config.java_libs.each do |jar|
+ require jar
+ end
+ end
+
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.