Methods

Warbler::WinstoneServer

Public Class Methods

new() click to toggle source
# File lib/warbler/web_server.rb, line 48
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
# File lib/warbler/web_server.rb, line 54
def add(jar)
  super
  jar.files["WEB-INF/webserver.properties"] = StringIO.new(mainclass = winstone.Launcherargs = args0,args1,args2args0 = --warfile={{warfile}}args1 = --webroot={{webroot}}args2 = --directoryListings=false)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.