jetty 6.2-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.rdoc +29 -0
- data/Manifest.txt +10 -0
- data/README.rdoc +74 -0
- data/Rakefile +29 -0
- data/bin/jetty-service +24 -0
- data/lib/jetty.rb +21 -0
- data/lib/jetty/base.rb +19 -0
- data/lib/jetty/rewrite.rb +1 -0
- data/lib/jetty/test-servlets.rb +1 -0
- data/test/test_jetty.rb +54 -0
- metadata +96 -0
data/History.rdoc
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
=== 6.2 (2011-5-19)
|
2
|
+
* Re-release under the "jetty" name as a simple wrapper for
|
3
|
+
rjack-jetty >= 6.1.26, < 7.
|
4
|
+
|
5
|
+
=== 6.1.19.1 (2009-7-22)
|
6
|
+
* Update to Jetty 6.1.19
|
7
|
+
|
8
|
+
=== 6.1.18.1 (2009-5-29)
|
9
|
+
* Update to Jetty 6.1.18
|
10
|
+
|
11
|
+
=== 6.1.17.1 (2009-5-2)
|
12
|
+
* Update to Jetty 6.1.17
|
13
|
+
* Use rdoc 2.4.3 and hoe 1.12.2 for build.
|
14
|
+
|
15
|
+
=== 6.1.16.1 (2009-4-4)
|
16
|
+
* Update to Jetty 6.1.16, which now uses externalized
|
17
|
+
org.mortbay.jetty:servlet-api (2.5-20081211) dependency.
|
18
|
+
* Add logback as development dependency.
|
19
|
+
|
20
|
+
=== 6.1.14.1 (2008-12-6)
|
21
|
+
* Update to Jetty 6.1.14
|
22
|
+
* JettyBase -rename-> Jetty
|
23
|
+
|
24
|
+
=== 6.1.12.1 (2008-11-7)
|
25
|
+
* Update to Jetty 6.1.12
|
26
|
+
* Fixed packaging of test.war
|
27
|
+
|
28
|
+
=== 6.1.11.1 (2008-11-2)
|
29
|
+
* Initial release based on Jetty Web Server 6.1.11
|
data/Manifest.txt
ADDED
data/README.rdoc
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
= jetty
|
2
|
+
|
3
|
+
* http://rjack.rubyforge.org/jetty-redirect
|
4
|
+
* http://rjack.rubyforge.org
|
5
|
+
* https://github.com/dekellum/rjack
|
6
|
+
|
7
|
+
== Description
|
8
|
+
|
9
|
+
*DEPRECATED*: Use the actively maintained rjack-jetty instead. This
|
10
|
+
gem has been re-released as a simple compatibly wrapper for the
|
11
|
+
rjack-jetty gem.
|
12
|
+
|
13
|
+
== Synopsis
|
14
|
+
|
15
|
+
% jetty-service -v
|
16
|
+
Usage: jetty-service [options]
|
17
|
+
-p, --port N Port to listen on (default: auto)
|
18
|
+
-t, --threads N Maximum pool threads (default: 20)
|
19
|
+
-w, --webapp PATH Load PATH as root context webapp
|
20
|
+
(default: gem test.war)
|
21
|
+
-j, --jsp Enable JSP support by loading jetty-jsp gem
|
22
|
+
-d, --debug Enable debug logging
|
23
|
+
-v, --version Show version and exit
|
24
|
+
|
25
|
+
or
|
26
|
+
|
27
|
+
require 'jetty'
|
28
|
+
require 'jetty/test-servlets'
|
29
|
+
|
30
|
+
factory = Jetty::ServerFactory.new
|
31
|
+
factory.port = 8080
|
32
|
+
|
33
|
+
factory.set_context_servlets( '/', '/*' => Jetty::TestServlets::SnoopServlet.new )
|
34
|
+
server = factory.create
|
35
|
+
server.start
|
36
|
+
server.join
|
37
|
+
|
38
|
+
== License
|
39
|
+
|
40
|
+
=== jetty gem
|
41
|
+
|
42
|
+
Copyright (c) 2008-2011 David Kellum
|
43
|
+
|
44
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you
|
45
|
+
may not use this file except in compliance with the License. You
|
46
|
+
may obtain a copy of the License at:
|
47
|
+
|
48
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
49
|
+
|
50
|
+
Unless required by applicable law or agreed to in writing, software
|
51
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
52
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
53
|
+
implied. See the License for the specific language governing
|
54
|
+
permissions and limitations under the License.
|
55
|
+
|
56
|
+
=== Jetty Web Container (Java)
|
57
|
+
|
58
|
+
Copyright (c) 1995-2009 Mort Bay Consulting Pty Ltd
|
59
|
+
|
60
|
+
The Jetty Web Container is Copyright Mort Bay Consulting Pty Ltd
|
61
|
+
unless otherwise noted. It is dual licensed under the apache 2.0
|
62
|
+
license and eclipse 1.0 license. Jetty may be distributed under
|
63
|
+
either license.
|
64
|
+
|
65
|
+
The javax.servlet package used was sourced from the Apache
|
66
|
+
Software Foundation and is distributed under the apache 2.0
|
67
|
+
license.
|
68
|
+
|
69
|
+
The UnixCrypt.java code implements the one way cryptography used by
|
70
|
+
Unix systems for simple password protection. Copyright 1996 Aki Yoshida,
|
71
|
+
modified April 2001 by Iris Van den Broeke, Daniel Deville.
|
72
|
+
Permission to use, copy, modify and distribute UnixCrypt
|
73
|
+
for non-commercial or commercial purposes and without fee is
|
74
|
+
granted provided that the copyright notice appears in all copies.
|
data/Rakefile
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
$LOAD_PATH << './lib'
|
4
|
+
require 'jetty/base'
|
5
|
+
|
6
|
+
require 'rubygems'
|
7
|
+
gem 'rjack-tarpit', '~> 1.3.0'
|
8
|
+
require 'rjack-tarpit'
|
9
|
+
|
10
|
+
t = RJack::TarPit.new( 'jetty', JettyRedirect::VERSION, :java_platform )
|
11
|
+
|
12
|
+
t.specify do |h|
|
13
|
+
h.developer( "David Kellum", "dek-oss@gravitext.com" )
|
14
|
+
h.extra_deps << [ 'rjack-jetty', '>= 6.1.26', '< 7' ]
|
15
|
+
h.rdoc_locations << "dekellum@rubyforge.org:/var/www/gforge-projects/rjack/jetty-redirect"
|
16
|
+
end
|
17
|
+
|
18
|
+
task :check_history_version do
|
19
|
+
t.test_line_match( 'History.rdoc', /^==/, / #{t.version} / )
|
20
|
+
end
|
21
|
+
task :check_history_date do
|
22
|
+
t.test_line_match( 'History.rdoc', /^==/, /\([0-9\-]+\)$/ )
|
23
|
+
end
|
24
|
+
|
25
|
+
task :gem => [ :check_history_version ]
|
26
|
+
task :tag => [ :check_history_version, :check_history_date ]
|
27
|
+
task :push => [ :check_history_date ]
|
28
|
+
|
29
|
+
t.define_tasks
|
data/bin/jetty-service
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/env jruby
|
2
|
+
# -*- ruby -*-
|
3
|
+
#--
|
4
|
+
# Copyright (c) 2008-2011 David Kellum
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
7
|
+
# may not use this file except in compliance with the License. You
|
8
|
+
# may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
15
|
+
# implied. See the License for the specific language governing
|
16
|
+
# permissions and limitations under the License.
|
17
|
+
#++
|
18
|
+
|
19
|
+
$LOAD_PATH.unshift File.join( File.dirname(__FILE__), "..", "lib" )
|
20
|
+
|
21
|
+
require 'rubygems'
|
22
|
+
require 'jetty'
|
23
|
+
|
24
|
+
load Gem.bin_path( 'rjack-jetty', 'rjack-jetty-service' )
|
data/lib/jetty.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2008-2011 David Kellum
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
5
|
+
# may not use this file except in compliance with the License. You
|
6
|
+
# may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
13
|
+
# implied. See the License for the specific language governing
|
14
|
+
# permissions and limitations under the License.
|
15
|
+
#++
|
16
|
+
|
17
|
+
require 'rjack-jetty'
|
18
|
+
|
19
|
+
require 'jetty/base'
|
20
|
+
|
21
|
+
Jetty = RJack::Jetty
|
data/lib/jetty/base.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2008-2011 David Kellum
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
5
|
+
# may not use this file except in compliance with the License. You
|
6
|
+
# may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
13
|
+
# implied. See the License for the specific language governing
|
14
|
+
# permissions and limitations under the License.
|
15
|
+
#++
|
16
|
+
|
17
|
+
module JettyRedirect
|
18
|
+
VERSION = '6.2'
|
19
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'rjack-jetty/rewrite'
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'rjack-jetty/test-servlets'
|
data/test/test_jetty.rb
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
#!/usr/bin/env jruby
|
2
|
+
#.hashdot.profile += jruby-shortlived
|
3
|
+
|
4
|
+
#--
|
5
|
+
# Copyright (c) 2008-2011 David Kellum
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
8
|
+
# may not use this file except in compliance with the License. You
|
9
|
+
# may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
16
|
+
# implied. See the License for the specific language governing
|
17
|
+
# permissions and limitations under the License.
|
18
|
+
#++
|
19
|
+
|
20
|
+
$LOAD_PATH.unshift File.join( File.dirname( __FILE__ ), "..", "lib" )
|
21
|
+
|
22
|
+
require 'rubygems'
|
23
|
+
|
24
|
+
gem( 'rjack-jetty', '>= 6.1.26', '< 7' )
|
25
|
+
|
26
|
+
require 'jetty'
|
27
|
+
require 'jetty/rewrite'
|
28
|
+
require 'jetty/test-servlets'
|
29
|
+
|
30
|
+
require 'test/unit'
|
31
|
+
require 'net/http'
|
32
|
+
|
33
|
+
class TestJetty < Test::Unit::TestCase
|
34
|
+
include Jetty
|
35
|
+
|
36
|
+
def default_factory
|
37
|
+
factory = ServerFactory.new
|
38
|
+
factory.max_threads = 1
|
39
|
+
factory.stop_at_shutdown = false
|
40
|
+
factory
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_start_stop
|
44
|
+
factory = default_factory
|
45
|
+
server = factory.create
|
46
|
+
server.start
|
47
|
+
assert( server.is_started )
|
48
|
+
assert( server.connectors[0].local_port > 0 )
|
49
|
+
server.stop
|
50
|
+
server.join
|
51
|
+
assert( server.is_stopped )
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|
metadata
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jetty
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: "6.2"
|
6
|
+
platform: java
|
7
|
+
authors:
|
8
|
+
- David Kellum
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-05-19 00:00:00 -07:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rjack-jetty
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 6.1.26
|
25
|
+
- - <
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: "7"
|
28
|
+
type: :runtime
|
29
|
+
version_requirements: *id001
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rjack-tarpit
|
32
|
+
prerelease: false
|
33
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ~>
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 1.3.1
|
39
|
+
type: :development
|
40
|
+
version_requirements: *id002
|
41
|
+
description: |-
|
42
|
+
*DEPRECATED*: Use the actively maintained rjack-jetty instead. This
|
43
|
+
gem has been re-released as a simple compatibly wrapper for the
|
44
|
+
rjack-jetty gem.
|
45
|
+
email:
|
46
|
+
- dek-oss@gravitext.com
|
47
|
+
executables:
|
48
|
+
- jetty-service
|
49
|
+
extensions: []
|
50
|
+
|
51
|
+
extra_rdoc_files:
|
52
|
+
- Manifest.txt
|
53
|
+
- History.rdoc
|
54
|
+
- README.rdoc
|
55
|
+
files:
|
56
|
+
- History.rdoc
|
57
|
+
- Manifest.txt
|
58
|
+
- README.rdoc
|
59
|
+
- Rakefile
|
60
|
+
- bin/jetty-service
|
61
|
+
- lib/jetty/base.rb
|
62
|
+
- lib/jetty.rb
|
63
|
+
- lib/jetty/rewrite.rb
|
64
|
+
- lib/jetty/test-servlets.rb
|
65
|
+
- test/test_jetty.rb
|
66
|
+
has_rdoc: true
|
67
|
+
homepage: http://rjack.rubyforge.org/jetty-redirect
|
68
|
+
licenses: []
|
69
|
+
|
70
|
+
post_install_message:
|
71
|
+
rdoc_options:
|
72
|
+
- --main
|
73
|
+
- README.rdoc
|
74
|
+
require_paths:
|
75
|
+
- lib
|
76
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: "0"
|
82
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: "0"
|
88
|
+
requirements: []
|
89
|
+
|
90
|
+
rubyforge_project: jetty
|
91
|
+
rubygems_version: 1.5.1
|
92
|
+
signing_key:
|
93
|
+
specification_version: 3
|
94
|
+
summary: "*DEPRECATED*: Use the actively maintained rjack-jetty instead"
|
95
|
+
test_files:
|
96
|
+
- test/test_jetty.rb
|