glassfish 0.3.1-universal-java → 0.9.0-universal-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.
Files changed (88) hide show
  1. data/bin/asadmin +3 -11
  2. data/bin/glassfish +42 -0
  3. data/bin/glassfish_rails +39 -43
  4. data/domains/domain1/config/default-web.xml +16 -15
  5. data/domains/domain1/config/domain.xml +213 -198
  6. data/domains/domain1/config/domain.xml_ORIG +170 -210
  7. data/domains/domain1/config/keystore.jks +0 -0
  8. data/domains/domain1/config/logging.properties +48 -0
  9. data/domains/domain1/config/server.policy +10 -0
  10. data/domains/domain1/docroot/index.html +50 -17
  11. data/felix/bin/felix.jar +0 -0
  12. data/felix/bundle/org.apache.felix.shell.jar +0 -0
  13. data/felix/bundle/org.apache.felix.shell.remote.jar +0 -0
  14. data/felix/bundle/org.apache.felix.shell.tui.jar +0 -0
  15. data/felix/conf/config.properties +277 -0
  16. data/felix/conf/system.properties +14 -0
  17. data/lib/jndi-properties.jar +0 -0
  18. data/lib/templates/default-web.xml +1104 -1129
  19. data/lib/templates/domain.xml +166 -209
  20. data/lib/templates/keystore.jks +0 -0
  21. data/lib/templates/logging.properties +48 -0
  22. data/lib/templates/server.policy +170 -155
  23. data/modules/admin-cli.jar +0 -0
  24. data/modules/api-exporter.jar +0 -0
  25. data/modules/asadmin.rb +9 -0
  26. data/modules/asm-all-repackaged.jar +0 -0
  27. data/modules/{auto-depends-0.3.2.jar → auto-depends-0.3.33.jar} +0 -0
  28. data/modules/auto-depends.jar +0 -0
  29. data/modules/branding.jar +0 -0
  30. data/modules/{cli-framework-10.0-SNAPSHOT.jar → cli-framework.jar} +0 -0
  31. data/modules/command_line_parser.rb +54 -0
  32. data/modules/{common-util-10.0-SNAPSHOT.jar → common-util.jar} +0 -0
  33. data/modules/config-0.3.33.jar +0 -0
  34. data/modules/config-api.jar +0 -0
  35. data/modules/config.jar +0 -0
  36. data/modules/deployment-admin.jar +0 -0
  37. data/modules/deployment-autodeploy.jar +0 -0
  38. data/modules/deployment-common.jar +0 -0
  39. data/modules/flashlight-agent.jar +0 -0
  40. data/modules/flashlight-framework.jar +0 -0
  41. data/modules/gf-jruby-connector-0.7.1-SNAPSHOT.jar +0 -0
  42. data/modules/glassfish-api-3.0-Prelude-b28b.jar +0 -0
  43. data/modules/glassfish-api.jar +0 -0
  44. data/modules/glassfish.jar +0 -0
  45. data/modules/glassfish.rb +13 -9
  46. data/modules/grizzly-jruby-1.8.1.jar +0 -0
  47. data/modules/grizzly-jruby-module-0.7.1-SNAPSHOT.jar +0 -0
  48. data/modules/grizzly-module.jar +0 -0
  49. data/modules/hk2-0.3.33.jar +0 -0
  50. data/modules/hk2-core-0.3.33.jar +0 -0
  51. data/modules/hk2-core.jar +0 -0
  52. data/modules/hk2.jar +0 -0
  53. data/modules/internal-api.jar +0 -0
  54. data/modules/javax.xml.stream.jar +0 -0
  55. data/modules/kernel.jar +0 -0
  56. data/modules/{launcher-10.0-SNAPSHOT.jar → launcher.jar} +0 -0
  57. data/modules/monitoring-core.jar +0 -0
  58. data/modules/osgi-adapter.jar +0 -0
  59. data/modules/pkg-client.jar +0 -0
  60. data/modules/rdoc_usage.rb +27 -0
  61. data/modules/stats77.jar +0 -0
  62. data/modules/{stax-api-1.0-2.jar → stax-api.jar} +0 -0
  63. data/modules/{tiger-types-osgi-0.3.2.jar → tiger-types-osgi-0.3.33.jar} +0 -0
  64. data/modules/tiger-types-osgi.jar +0 -0
  65. data/modules/version.rb +5 -0
  66. data/modules/{wstx-asl-3.2.3.jar → wstx-asl.jar} +0 -0
  67. metadata +109 -77
  68. data/README +0 -12
  69. data/bin/asadmin.bat +0 -9
  70. data/bin/startserv +0 -11
  71. data/bin/startserv.bat +0 -9
  72. data/bin/stopserv +0 -13
  73. data/bin/stopserv.bat +0 -9
  74. data/modules/admin-cli-10.0-SNAPSHOT.jar +0 -0
  75. data/modules/config-0.3.2.jar +0 -0
  76. data/modules/config-api-10.0-SNAPSHOT.jar +0 -0
  77. data/modules/deployment-common-10.0-SNAPSHOT.jar +0 -0
  78. data/modules/gf-jruby-connector-0.7-SNAPSHOT.jar +0 -0
  79. data/modules/glassfish-10.0-SNAPSHOT.jar +0 -0
  80. data/modules/glassfish-api-10.0.0-rev5.jar +0 -0
  81. data/modules/grizzly-jruby-1.7.5-SNAPSHOT.jar +0 -0
  82. data/modules/grizzly-jruby-module-0.7-SNAPSHOT.jar +0 -0
  83. data/modules/grizzly-module-1.7.3.3-rev1.jar +0 -0
  84. data/modules/hk2-0.3.2.jar +0 -0
  85. data/modules/hk2-core-0.3.2.jar +0 -0
  86. data/modules/internal-api-10.0-SNAPSHOT.jar +0 -0
  87. data/modules/kernel-10.0-SNAPSHOT.jar +0 -0
  88. data/modules/osgi-adapter-0.3.2.jar +0 -0
Binary file
Binary file
@@ -0,0 +1,9 @@
1
+ require 'admin-cli.jar'
2
+ require 'java'
3
+
4
+ module GlassFish
5
+ class ASAdmin
6
+ import com.sun.enterprise.admin.cli.AsadminMain
7
+ AsadminMain.main(ARGV.to_java :String)
8
+ end
9
+ end
Binary file
Binary file
Binary file
@@ -0,0 +1,54 @@
1
+ require 'rdoc_usage'
2
+ require 'getoptlong'
3
+ class CommandLineParser
4
+ def init_opts
5
+ @@config ||= {
6
+ :runtimes => '1',
7
+ :runtimes_min => '1',
8
+ :runtimes_max => '1',
9
+ :contextroot => '/',
10
+ :environment => "development",
11
+ :app_dir => Dir.pwd,
12
+ :port => 3000
13
+ }
14
+ end
15
+
16
+ def parse
17
+ config = init_opts
18
+ opts = GetoptLong.new(
19
+ [ '--port', '-p', GetoptLong::REQUIRED_ARGUMENT ],
20
+ [ '--environment', '-e', GetoptLong::REQUIRED_ARGUMENT ],
21
+ [ '--contextroot', '-c', GetoptLong::REQUIRED_ARGUMENT ],
22
+ [ '--runtimes', '-n', GetoptLong::REQUIRED_ARGUMENT ],
23
+ [ '--runtimes_min', GetoptLong::REQUIRED_ARGUMENT ],
24
+ [ '--runtimes_max', GetoptLong::REQUIRED_ARGUMENT ],
25
+ [ '--version', '-v', GetoptLong::NO_ARGUMENT ],
26
+ [ '--help', '-h', GetoptLong::NO_ARGUMENT ]
27
+ )
28
+
29
+ opts.each do |opt, arg|
30
+ case opt
31
+ when '--version'
32
+ require 'version'
33
+ puts "GlassFish gem version: #{GlassFish::VERSION::STRING}\nhttp://glassfishgem.rubyforge.org"
34
+ exit(0)
35
+ when '--help'
36
+ RDoc::usage
37
+ when '--contextroot'
38
+ config[:contextroot] = arg
39
+ when '--port'
40
+ config[:port] = arg.to_i
41
+ when '--environment'
42
+ config[:environment] = arg
43
+ when '--runtimes'
44
+ config[:runtimes] = arg
45
+ when '--runtimes-min'
46
+ config[:runtimes_min] = arg
47
+ when '--runtimes-max'
48
+ config[:runtimes_min] = arg
49
+ end
50
+ end
51
+ config[:app_dir] = ARGV.shift unless ARGV.empty?
52
+ config
53
+ end
54
+ end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/modules/glassfish.rb CHANGED
@@ -1,13 +1,17 @@
1
- require 'glassfish-10.0-SNAPSHOT.jar'
1
+ require 'glassfish.jar'
2
2
 
3
3
  module GlassFish
4
- import com.sun.enterprise.glassfish.bootstrap.ASMain
5
- def startup(args)
6
- #OSGi is default but GlassFish nucleus does not have all the dependencies for OSGi and
7
- #hence it fails. For now running it in HK2
8
- java.lang.System.setProperty("GlassFish_Platform", "HK2");
9
- ASMain.main(args.to_java(:string))
10
- end
4
+ class Server
5
+ import com.sun.enterprise.glassfish.bootstrap.ASMain
6
+ def startup(args)
7
+ #set jruby runtime property
8
+ java.lang.System.setProperty("jruby.runtime", args[:runtimes].to_s)
9
+ java.lang.System.setProperty("jruby.runtime.min", args[:runtimes_min].to_s)
10
+ java.lang.System.setProperty("jruby.runtime.max", args[:runtimes_max].to_s)
11
+ java.lang.System.setProperty("rails.env", args[:environment])
12
+ java.lang.System.setProperty("jruby.gem.port", args[:port].to_s)
11
13
 
12
- module_function :startup
14
+ ASMain.main([args[:app_dir], "--contextroot", args[:contextroot]].to_java(:string))
15
+ end
16
+ end
13
17
  end
Binary file
Binary file
Binary file
Binary file
Binary file
data/modules/hk2.jar ADDED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,27 @@
1
+ require 'rdoc/usage'
2
+
3
+ def RDoc.usage_no_exit(*args)
4
+ comment = File.open(File.join(File.dirname(__FILE__), %w(.. bin), File.basename($0))) do |file|
5
+ find_comment(file)
6
+ end
7
+
8
+ comment = comment.gsub(/^\s*#/, '')
9
+
10
+ markup = SM::SimpleMarkup.new
11
+ flow_convertor = SM::ToFlow.new
12
+
13
+ flow = markup.convert(comment, flow_convertor)
14
+
15
+ format = "plain"
16
+
17
+ unless args.empty?
18
+ flow = extract_sections(flow, args)
19
+ end
20
+
21
+ options = RI::Options.instance
22
+ if args = ENV["RI"]
23
+ options.parse(args.split)
24
+ end
25
+ formatter = options.formatter.new(options, "")
26
+ formatter.display_flow(flow)
27
+ end
Binary file
File without changes
Binary file
@@ -0,0 +1,5 @@
1
+ module GlassFish
2
+ module VERSION
3
+ STRING = "0.9.0"
4
+ end
5
+ end
File without changes
metadata CHANGED
@@ -1,143 +1,175 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  extensions: []
3
+
3
4
  homepage: http://wiki.glassfish.java.net/Wiki.jsp?page=JRuby
4
5
  executables:
6
+ - glassfish
5
7
  - glassfish_rails
6
8
  - asadmin
7
- - asadmin.bat
8
- version: !ruby/object:Gem::Version
9
- version: 0.3.1
9
+ version: !ruby/object:Gem::Version
10
+ version: 0.9.0
10
11
  post_install_message:
11
- date: 2008-06-24 08:00:00 +00:00
12
+ date: 2008-11-05 08:00:00 +00:00
12
13
  files:
13
- - bin/startserv.bat
14
- - bin/asadmin.bat
15
- - bin/glassfish_rails
16
- - bin/startserv
17
14
  - bin/asadmin
18
- - bin/stopserv
19
- - bin/stopserv.bat
15
+ - bin/glassfish
16
+ - bin/glassfish_rails
20
17
  - lib/appclient
21
- - lib/processLauncher.xml
18
+ - lib/jndi-properties.jar
22
19
  - lib/package-appclient.xml
23
- - lib/registration
24
20
  - lib/processLauncher.properties
21
+ - lib/processLauncher.xml
22
+ - lib/registration
25
23
  - lib/templates
26
24
  - lib/appclient/appclientlogin.conf
27
25
  - lib/appclient/client.policy
28
26
  - lib/appclient/wss-client-config-1.0.xml
29
27
  - lib/appclient/wss-client-config-2.0.xml
30
28
  - lib/registration/servicetag-registry.xml
31
- - lib/templates/logging.properties
32
- - lib/templates/keyfile
33
- - lib/templates/server.policy
34
- - lib/templates/domain.xml.xsl
35
- - lib/templates/profile.properties
36
- - lib/templates/domain.xml
37
- - lib/templates/default-web.xml
38
29
  - lib/templates/cacerts.jks
30
+ - lib/templates/default-web.xml
31
+ - lib/templates/domain.xml
32
+ - lib/templates/domain.xml.xsl
33
+ - lib/templates/keyfile
34
+ - lib/templates/keystore.jks
35
+ - lib/templates/logging.properties
39
36
  - lib/templates/login.conf
40
- - modules/deployment-common-10.0-SNAPSHOT.jar
41
- - modules/glassfish-10.0-SNAPSHOT.jar
42
- - modules/hk2-0.3.2.jar
43
- - modules/tiger-types-osgi-0.3.2.jar
44
- - modules/cli-framework-10.0-SNAPSHOT.jar
45
- - modules/grizzly-jruby-1.7.5-SNAPSHOT.jar
46
- - modules/common-util-10.0-SNAPSHOT.jar
47
- - modules/hk2-core-0.3.2.jar
48
- - modules/osgi-adapter-0.3.2.jar
49
- - modules/admin-cli-10.0-SNAPSHOT.jar
50
- - modules/grizzly-module-1.7.3.3-rev1.jar
51
- - modules/auto-depends-0.3.2.jar
52
- - modules/glassfish-api-10.0.0-rev5.jar
37
+ - lib/templates/profile.properties
38
+ - lib/templates/server.policy
39
+ - felix/bin
40
+ - felix/bundle
41
+ - felix/conf
42
+ - felix/bin/felix.jar
43
+ - felix/bundle/org.apache.felix.shell.jar
44
+ - felix/bundle/org.apache.felix.shell.remote.jar
45
+ - felix/bundle/org.apache.felix.shell.tui.jar
46
+ - felix/conf/config.properties
47
+ - felix/conf/system.properties
48
+ - modules/admin-cli.jar
49
+ - modules/api-exporter.jar
50
+ - modules/asadmin.rb
51
+ - modules/asm-all-repackaged.jar
52
+ - modules/auto-depends-0.3.33.jar
53
+ - modules/auto-depends.jar
54
+ - modules/branding.jar
55
+ - modules/cli-framework.jar
56
+ - modules/command_line_parser.rb
57
+ - modules/common-util.jar
58
+ - modules/config-0.3.33.jar
59
+ - modules/config-api.jar
60
+ - modules/config.jar
61
+ - modules/deployment-admin.jar
62
+ - modules/deployment-autodeploy.jar
63
+ - modules/deployment-common.jar
64
+ - modules/flashlight-agent.jar
65
+ - modules/flashlight-framework.jar
66
+ - modules/gf-jruby-connector-0.7.1-SNAPSHOT.jar
67
+ - modules/glassfish-api-3.0-Prelude-b28b.jar
68
+ - modules/glassfish-api.jar
69
+ - modules/glassfish.jar
53
70
  - modules/glassfish.rb
54
- - modules/stax-api-1.0-2.jar
55
- - modules/wstx-asl-3.2.3.jar
56
- - modules/config-api-10.0-SNAPSHOT.jar
57
- - modules/launcher-10.0-SNAPSHOT.jar
58
- - modules/kernel-10.0-SNAPSHOT.jar
59
- - modules/config-0.3.2.jar
60
- - modules/gf-jruby-connector-0.7-SNAPSHOT.jar
61
- - modules/grizzly-jruby-module-0.7-SNAPSHOT.jar
62
- - modules/internal-api-10.0-SNAPSHOT.jar
63
- - config/asenv.conf
71
+ - modules/grizzly-jruby-1.8.1.jar
72
+ - modules/grizzly-jruby-module-0.7.1-SNAPSHOT.jar
73
+ - modules/grizzly-module.jar
74
+ - modules/hk2-0.3.33.jar
75
+ - modules/hk2-core-0.3.33.jar
76
+ - modules/hk2-core.jar
77
+ - modules/hk2.jar
78
+ - modules/internal-api.jar
79
+ - modules/javax.xml.stream.jar
80
+ - modules/kernel.jar
81
+ - modules/launcher.jar
82
+ - modules/monitoring-core.jar
83
+ - modules/osgi-adapter.jar
84
+ - modules/pkg-client.jar
85
+ - modules/rdoc_usage.rb
86
+ - modules/stats77.jar
87
+ - modules/stax-api.jar
88
+ - modules/tiger-types-osgi-0.3.33.jar
89
+ - modules/tiger-types-osgi.jar
90
+ - modules/version.rb
91
+ - modules/wstx-asl.jar
64
92
  - config/asadminenv.conf
65
93
  - config/asenv.bat
94
+ - config/asenv.conf
66
95
  - config/glassfish.container
67
96
  - domains/domain1
68
- - domains/domain1/logs
69
- - domains/domain1/docroot
97
+ - domains/domain1/applications
70
98
  - domains/domain1/config
99
+ - domains/domain1/docroot
71
100
  - domains/domain1/generated
101
+ - domains/domain1/logs
72
102
  - domains/domain1/master-password
73
- - domains/domain1/applications
74
103
  - domains/domain1/session-store
75
- - domains/domain1/docroot/favicon.gif
76
- - domains/domain1/docroot/index.html
104
+ - domains/domain1/applications/j2ee-apps
105
+ - domains/domain1/applications/j2ee-modules
106
+ - domains/domain1/applications/lifecycle-modules
107
+ - domains/domain1/applications/mbeans
108
+ - domains/domain1/config/admin-keyfile
109
+ - domains/domain1/config/cacerts.jks
77
110
  - domains/domain1/config/default-config
78
- - domains/domain1/config/wss-server-config-2.0.xml
79
- - domains/domain1/config/logging.properties
80
- - domains/domain1/config/keyfile
81
- - domains/domain1/config/server.policy
82
- - domains/domain1/config/sun-acc.xml
111
+ - domains/domain1/config/default-web.xml
112
+ - domains/domain1/config/domain-passwords
83
113
  - domains/domain1/config/domain.xml
84
114
  - domains/domain1/config/domain.xml_ORIG
85
- - domains/domain1/config/domain-passwords
86
- - domains/domain1/config/default-web.xml
87
- - domains/domain1/config/cacerts.jks
88
- - domains/domain1/config/wss-server-config-1.0.xml
115
+ - domains/domain1/config/keyfile
89
116
  - domains/domain1/config/keystore.jks
117
+ - domains/domain1/config/logging.properties
90
118
  - domains/domain1/config/login.conf
91
- - domains/domain1/config/admin-keyfile
92
- - domains/domain1/config/default-config/lib
119
+ - domains/domain1/config/server.policy
120
+ - domains/domain1/config/sun-acc.xml
121
+ - domains/domain1/config/wss-server-config-1.0.xml
122
+ - domains/domain1/config/wss-server-config-2.0.xml
93
123
  - domains/domain1/config/default-config/docroot
124
+ - domains/domain1/config/default-config/lib
94
125
  - domains/domain1/config/default-config/lib/ext
126
+ - domains/domain1/docroot/favicon.gif
127
+ - domains/domain1/docroot/index.html
95
128
  - domains/domain1/generated/ejb
96
129
  - domains/domain1/generated/jsp
97
130
  - domains/domain1/generated/xml
98
- - domains/domain1/applications/j2ee-apps
99
- - domains/domain1/applications/lifecycle-modules
100
- - domains/domain1/applications/j2ee-modules
101
- - domains/domain1/applications/mbeans
102
- - README
103
131
  - LICENSE.txt
104
132
  - COPYRIGHT
105
- rubygems_version: 1.1.1
133
+ rubygems_version: 1.2.0
106
134
  rdoc_options: []
135
+
107
136
  signing_key:
108
137
  cert_chain: []
138
+
109
139
  name: glassfish
110
- has_rdoc: false
140
+ has_rdoc: true
111
141
  platform: universal-java
112
142
  summary: GlassFish V3 Application Server for JRuby
113
- default_executable: glassfish_rails
143
+ default_executable: glassfish
114
144
  bindir: bin
115
- required_rubygems_version: !ruby/object:Gem::Requirement
145
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
146
  version:
117
147
  requirements:
118
148
  - - '>='
119
- - !ruby/object:Gem::Version
120
- version: !str 0
121
- required_ruby_version: !ruby/object:Gem::Requirement
149
+ - !ruby/object:Gem::Version
150
+ version: "0"
151
+ required_ruby_version: !ruby/object:Gem::Requirement
122
152
  version:
123
153
  requirements:
124
154
  - - '>='
125
- - !ruby/object:Gem::Version
126
- version: !str 0
155
+ - !ruby/object:Gem::Version
156
+ version: "0"
127
157
  require_paths:
128
158
  - modules
129
159
  specification_version: 2
130
160
  test_files: []
161
+
131
162
  dependencies: []
163
+
132
164
  description: GlassFish gem is an embedded GlassFish V3 application server which would
133
165
  help run your Ruby on Rails application
134
- email: vivek.pandey@sun.com, pramod.gopinath@sun.com, jerome.dochez@sun.com
166
+ email: vivek.pandey@sun.com, jerome.dochez@sun.com
135
167
  authors:
136
- - Vivek Pandey, Pramod Gopinath, Jerome Dochez
168
+ - Vivek Pandey, Jerome Dochez
137
169
  extra_rdoc_files:
138
- - README
139
170
  - LICENSE.txt
140
171
  - COPYRIGHT
141
172
  requirements: []
173
+
142
174
  rubyforge_project: glassfishgem
143
- autorequire: GlassFish
175
+ autorequire: