bin/jetty-service in jetty-6.1.18.1 vs bin/jetty-service in jetty-6.1.19.1
- old
+ new
@@ -19,11 +19,11 @@
$LOAD_PATH.unshift File.join( File.dirname(__FILE__), "..", "lib" )
require 'rubygems'
begin
- gem 'logback'
+ gem 'logback'
require 'logback'
Logback.configure do
console = Logback::ConsoleAppender.new do |a|
a.layout = Logback::PatternLayout.new do |p|
p.pattern = "%-4r %-5level %logger{35} - %msg %ex%n"
@@ -50,18 +50,18 @@
factory = Jetty::ServerFactory.new
factory.webapp_contexts[ '/' ] = Jetty::TestServlets::WEBAPP_TEST_EXPANDED
OptionParser.new do |opts|
- opts.on( "-p", "--port N", Integer,
+ opts.on( "-p", "--port N", Integer,
"Port to listen on (default: auto)" ) do |v|
factory.port = v
end
- opts.on( "-t", "--threads N", Integer,
+ opts.on( "-t", "--threads N", Integer,
"Maximum pool threads (default: #{factory.max_threads})" ) do |v|
factory.max_threads = v
end
- opts.on( "-w", "--webapp PATH",
+ opts.on( "-w", "--webapp PATH",
"Load PATH as root context webapp. (default: gem test.war)" ) do |v|
factory.webapp_contexts[ '/' ] = v
end
opts.on( "-j", "--jsp", "Enable JSP support by loading jetty-jsp gem") do
gem( 'jetty-jsp', "~> #{Jetty::JETTY_VERSION}" )