Permalink
Browse files

adding warbler custom jars

  • Loading branch information...
1 parent bde4093 commit 003074f2e13636ca28f8b7a259faed7b64b9485d @fabiokung fabiokung committed Jun 10, 2008
Showing with 19 additions and 0 deletions.
  1. +7 −0 lib/jetty_rails/runner.rb
  2. +12 −0 lib/jetty_rails/warbler_reader.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 = {})
@@ -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

0 comments on commit 003074f

Please sign in to comment.