jetty-jsp 6.2-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +27 -0
- data/Manifest.txt +7 -0
- data/README.rdoc +49 -0
- data/Rakefile +31 -0
- data/lib/jetty-jsp.rb +19 -0
- data/lib/jetty-jsp/base.rb +19 -0
- data/test/test_jsp.rb +54 -0
- metadata +93 -0
data/History.rdoc
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
=== 6.2 (2011-5-19)
|
2
|
+
* Re-release under the "jetty-jsp" name as a simple wrapper for
|
3
|
+
rjack-jetty-jsp >= 6.1.26, < 7.
|
4
|
+
|
5
|
+
=== 6.1.19.2.1.1 (2009-7-22)
|
6
|
+
* Update to Jetty 6.1.19 JSP 2.1
|
7
|
+
|
8
|
+
=== 6.1.18.2.1.1 (2009-5-29)
|
9
|
+
* Update to Jetty 6.1.18 JSP 2.1
|
10
|
+
|
11
|
+
=== 6.1.17.2.1.1 (2009-5-2)
|
12
|
+
* Update to Jetty 6.1.17 JSP 2.1
|
13
|
+
* Includes jsp-api-2.1-glassfish (9.1.1.B60.25.p0).
|
14
|
+
|
15
|
+
=== 6.1.16.2.1.1 (2009-4-4)
|
16
|
+
* Update to Jetty 6.1.16 JSP 2.1, which now uses externalized
|
17
|
+
jsp-2.1-glassfish and jsp-api-2.1-glassfish (9.1.1.B51.25.p1) jars.
|
18
|
+
|
19
|
+
=== 6.1.14.2.1.1 (2008-12-6)
|
20
|
+
* Update to Jetty 6.1.14
|
21
|
+
* JettyJspBase -rename-> JettyJsp
|
22
|
+
|
23
|
+
=== 6.1.12.2.1.1 (2008-11-7)
|
24
|
+
* Update to Jetty 6.1.12
|
25
|
+
|
26
|
+
=== 6.1.11.2.1.1 (2008-11-2)
|
27
|
+
* Initial release based on Jetty Web Server 6.1.11 JSP 2.1
|
data/Manifest.txt
ADDED
data/README.rdoc
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
= jetty-jsp
|
2
|
+
|
3
|
+
* http://rjack.rubyforge.org/jetty-jsp-redirect
|
4
|
+
* http://rjack.rubyforge.org
|
5
|
+
* https://github.com/dekellum/rjack
|
6
|
+
|
7
|
+
== Description
|
8
|
+
|
9
|
+
*DEPRECATED*: Use the actively maintained rjack-jetty-jsp instead. This
|
10
|
+
gem has been re-released as a simple compatibly wrapper for the
|
11
|
+
rjack-jetty-jsp gem.
|
12
|
+
|
13
|
+
== License
|
14
|
+
|
15
|
+
=== jetty-jsp gem
|
16
|
+
|
17
|
+
Copyright (c) 2008-2011 David Kellum
|
18
|
+
|
19
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you
|
20
|
+
may not use this file except in compliance with the License. You
|
21
|
+
may obtain a copy of the License at:
|
22
|
+
|
23
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
24
|
+
|
25
|
+
Unless required by applicable law or agreed to in writing, software
|
26
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
27
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
28
|
+
implied. See the License for the specific language governing
|
29
|
+
permissions and limitations under the License.
|
30
|
+
|
31
|
+
=== Jetty Web Container (Java)
|
32
|
+
|
33
|
+
Copyright (c) 1995-2009 Mort Bay Consulting Pty Ltd
|
34
|
+
|
35
|
+
The Jetty Web Container is Copyright Mort Bay Consulting Pty Ltd
|
36
|
+
unless otherwise noted. It is dual licensed under the apache 2.0
|
37
|
+
license and eclipse 1.0 license. Jetty may be distributed under
|
38
|
+
either license.
|
39
|
+
|
40
|
+
The javax.servlet package used was sourced from the Apache
|
41
|
+
Software Foundation and is distributed under the apache 2.0
|
42
|
+
license.
|
43
|
+
|
44
|
+
The UnixCrypt.java code implements the one way cryptography used by
|
45
|
+
Unix systems for simple password protection. Copyright 1996 Aki Yoshida,
|
46
|
+
modified April 2001 by Iris Van den Broeke, Daniel Deville.
|
47
|
+
Permission to use, copy, modify and distribute UnixCrypt
|
48
|
+
for non-commercial or commercial purposes and without fee is
|
49
|
+
granted provided that the copyright notice appears in all copies.
|
data/Rakefile
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
$LOAD_PATH << './lib'
|
4
|
+
require 'jetty-jsp/base'
|
5
|
+
|
6
|
+
require 'rubygems'
|
7
|
+
gem 'rjack-tarpit', '~> 1.3.0'
|
8
|
+
require 'rjack-tarpit'
|
9
|
+
|
10
|
+
include RJack
|
11
|
+
|
12
|
+
t = TarPit.new( 'jetty-jsp', JettyJspRedirect::VERSION, :java_platform )
|
13
|
+
|
14
|
+
t.specify do |h|
|
15
|
+
h.developer( "David Kellum", "dek-oss@gravitext.com" )
|
16
|
+
h.extra_deps << [ 'rjack-jetty-jsp', '>= 6.1.26', '< 7' ]
|
17
|
+
h.rdoc_locations << "dekellum@rubyforge.org:/var/www/gforge-projects/rjack/jetty-jsp-redirect"
|
18
|
+
end
|
19
|
+
|
20
|
+
task :check_history_version do
|
21
|
+
t.test_line_match( 'History.rdoc', /^==/, / #{t.version} / )
|
22
|
+
end
|
23
|
+
task :check_history_date do
|
24
|
+
t.test_line_match( 'History.rdoc', /^==/, /\([0-9\-]+\)$/ )
|
25
|
+
end
|
26
|
+
|
27
|
+
task :gem => [ :check_history_version ]
|
28
|
+
task :tag => [ :check_history_version, :check_history_date ]
|
29
|
+
task :push => [ :check_history_date ]
|
30
|
+
|
31
|
+
t.define_tasks
|
data/lib/jetty-jsp.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
|
+
require 'rjack-jetty-jsp'
|
18
|
+
|
19
|
+
require 'jetty-jsp/base'
|
@@ -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 JettyJspRedirect
|
18
|
+
VERSION = '6.2'
|
19
|
+
end
|
data/test/test_jsp.rb
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
#!/usr/bin/env jruby
|
2
|
+
#.hashdot.profile += jruby-shortlived
|
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
|
+
TEST_DIR = File.dirname(__FILE__)
|
20
|
+
|
21
|
+
$LOAD_PATH.unshift File.join( TEST_DIR, "..", "lib" )
|
22
|
+
|
23
|
+
require 'rubygems'
|
24
|
+
|
25
|
+
gem( 'rjack-jetty-jsp', '>= 6.1.26', '< 7' )
|
26
|
+
|
27
|
+
require 'jetty-jsp'
|
28
|
+
require 'test/unit'
|
29
|
+
require 'net/http'
|
30
|
+
|
31
|
+
class TestJsp < Test::Unit::TestCase
|
32
|
+
include RJack::Jetty
|
33
|
+
|
34
|
+
def default_factory
|
35
|
+
factory = ServerFactory.new
|
36
|
+
factory.max_threads = 1
|
37
|
+
factory.stop_at_shutdown = false
|
38
|
+
factory
|
39
|
+
end
|
40
|
+
|
41
|
+
def test_webapp
|
42
|
+
factory = default_factory
|
43
|
+
factory.webapp_contexts[ '/' ] = Jsp::TEST_WAR
|
44
|
+
|
45
|
+
server = factory.create
|
46
|
+
server.start
|
47
|
+
port = server.connectors[0].local_port
|
48
|
+
|
49
|
+
jsp_out = Net::HTTP.get( 'localhost', '/', port )
|
50
|
+
assert( jsp_out =~ /Hello World!/, jsp_out )
|
51
|
+
|
52
|
+
server.stop
|
53
|
+
end
|
54
|
+
end
|
metadata
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jetty-jsp
|
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-jsp
|
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-jsp instead. This
|
43
|
+
gem has been re-released as a simple compatibly wrapper for the
|
44
|
+
rjack-jetty-jsp gem.
|
45
|
+
email:
|
46
|
+
- dek-oss@gravitext.com
|
47
|
+
executables: []
|
48
|
+
|
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
|
+
- lib/jetty-jsp/base.rb
|
61
|
+
- lib/jetty-jsp.rb
|
62
|
+
- test/test_jsp.rb
|
63
|
+
has_rdoc: true
|
64
|
+
homepage: http://rjack.rubyforge.org/jetty-jsp-redirect
|
65
|
+
licenses: []
|
66
|
+
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options:
|
69
|
+
- --main
|
70
|
+
- README.rdoc
|
71
|
+
require_paths:
|
72
|
+
- lib
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: "0"
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
+
none: false
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: "0"
|
85
|
+
requirements: []
|
86
|
+
|
87
|
+
rubyforge_project: jetty-jsp
|
88
|
+
rubygems_version: 1.5.1
|
89
|
+
signing_key:
|
90
|
+
specification_version: 3
|
91
|
+
summary: "*DEPRECATED*: Use the actively maintained rjack-jetty-jsp instead"
|
92
|
+
test_files:
|
93
|
+
- test/test_jsp.rb
|