96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
# File 'lib/warbler/web_server.rb', line 96
def add(jar)
super
jar.files["WEB-INF/webserver.xml"] ||= StringIO.new("<?xml version=\"1.0\"?>\n<!DOCTYPE Configure PUBLIC \"-//Jetty//Configure//EN\" \"http://www.eclipse.org/jetty/configure.dtd\">\n\n<Configure id=\"Server\" class=\"org.eclipse.jetty.server.Server\">\n</Configure>\n")
jar.files["WEB-INF/webserver.properties"] ||= StringIO.new("mainclass = org.eclipse.jetty.runner.Runner\nargs = args0,args1,args2,args3,args4,args5,args6\nargs0 = --host\nargs1 = {{host}}\nargs2 = --port\nargs3 = {{port}}\nargs4 = --config\nargs5 = {{config}}\nargs6 = {{warfile}}\nprops = jetty.home,org.eclipse.jetty.util.log.class,org.eclipse.jetty.util.log.stderr.ESCAPE\njetty.home = {{webroot}}\norg.eclipse.jetty.util.log.class = org.eclipse.jetty.util.log.StdErrLog\norg.eclipse.jetty.util.log.stderr.ESCAPE = false\n")
end
|