class Warbler::JettyServer
Public Class Methods
new()
click to toggle source
# File lib/warbler/web_server.rb, line 117 def initialize @artifact = Artifact.new(ENV["MAVEN_REPO"] || "http://repo2.maven.org/maven2", "org.eclipse.jetty", "jetty-runner", ENV["WEBSERVER_VERSION"] || "9.2.9.v20150224") end
Public Instance Methods
add(jar)
click to toggle source
Calls superclass method
Warbler::WebServer#add
# File lib/warbler/web_server.rb, line 123 def add(jar) super jar.files["WEB-INF/webserver.xml"] ||= StringIO.new("<?xml version="1.0"?> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> <Configure id="Server" class="org.eclipse.jetty.server.Server"> </Configure> ") jar.files["WEB-INF/webserver.properties"] = StringIO.new("mainclass = org.eclipse.jetty.runner.Runner args = args0,args1,args2,args3,args4 props = jetty.home args0 = --port args1 = {{port}} args2 = --config args3 = {{config}} args4 = {{warfile}} jetty.home = {{webroot}} ") end