class Warbler::WinstoneServer
Public Class Methods
new()
click to toggle source
# File lib/warbler/web_server.rb, line 90 def initialize @artifact = Artifact.new(ENV["MAVEN_REPO"] || "http://repo2.maven.org/maven2", "net.sourceforge.winstone", "winstone-lite", ENV["WEBSERVER_VERSION"] || "0.9.10") end
Public Instance Methods
add(jar)
click to toggle source
Calls superclass method
Warbler::WebServer#add
# File lib/warbler/web_server.rb, line 96 def add(jar) super jar.files["WEB-INF/webserver.properties"] = StringIO.new("mainclass = winstone.Launcher args = args0,args1,args2 args0 = --warfile={{warfile}} args1 = --webroot={{webroot}} args2 = --directoryListings=false ") end