# File addon/buildr/jetty.rb, line 92 def start(sync = nil) begin puts "classpath #{Java.classpath.inspect}" port = URI.parse(url).port puts "Starting Jetty at http://localhost:#{port}" if verbose Java.load jetty = Java.org.apache.buildr.JettyWrapper.new(port) sync << "Started" if sync sleep # Forever rescue Interrupt # Stopped from console rescue Exception=>error puts "#{error.class}: #{error.message}" end exit! # No at_exit end