jnlp 0.0.3 → 0.0.4
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.txt +12 -0
- data/Manifest.txt +1 -0
- data/README.txt +14 -35
- data/Rakefile +14 -4
- data/config/hoe.rb +2 -1
- data/lib/jnlp.rb +1 -0
- data/lib/jnlp/jnlp.rb +11 -5
- data/lib/jnlp/maven_jnlp.rb +271 -0
- data/lib/jnlp/otrunk.rb +9 -9
- data/lib/jnlp/version.rb +28 -7
- data/website/index.html +63 -11
- metadata +18 -8
data/History.txt
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
== 0.0.4 2009-03-30
|
2
|
+
|
3
|
+
* added MavenJnlp class for encapsulating jnlp resources served
|
4
|
+
by a MavenJnlp Java Web Start server.
|
5
|
+
|
6
|
+
* specified a dependency on hpricot v 0.6.164, so far v0.7
|
7
|
+
doesn't support JRUby
|
8
|
+
|
9
|
+
== 0.0.3 2009-02
|
10
|
+
|
11
|
+
* extended OTrunk capability and integration with JRuby
|
12
|
+
|
1
13
|
== 0.0.1 2008-04-14
|
2
14
|
|
3
15
|
* 1 major enhancement:
|
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
@@ -1,48 +1,27 @@
|
|
1
|
-
|
1
|
+
== jnlp
|
2
2
|
|
3
|
-
|
3
|
+
A gem for encapsulating the content and resources referenced by Java Web Start jnlps
|
4
4
|
|
5
|
-
|
5
|
+
Complete rdoc available here: http://rubywebstart.rubyforge.org/jnlp/rdoc/
|
6
6
|
|
7
|
-
|
7
|
+
For more information about the structure of Java Web Start see:
|
8
8
|
|
9
|
-
|
9
|
+
http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/contents.html
|
10
10
|
|
11
|
-
|
11
|
+
To create a new Jnlp call Jnlp#new with a string that contains either a local path or a url.
|
12
12
|
|
13
|
-
|
13
|
+
Examples:
|
14
14
|
|
15
|
-
|
15
|
+
Creating a new Jnlp object from a local Java Web Start jnlp file.
|
16
16
|
|
17
|
-
|
17
|
+
j = Jnlp::Jnlp.new("authoring.jnlp")
|
18
18
|
|
19
|
-
|
19
|
+
Creating a new Jnlp object from a Java Web Start jnlp referenced with a url.
|
20
20
|
|
21
|
-
|
21
|
+
j = Jnlp::Jnlp.new("jnlp.concord.org/dev/org/concord/maven-jnlp/otrunk-sensor/otrunk-sensor.jnlp")
|
22
22
|
|
23
|
-
|
23
|
+
Once the Jnlp object is created you can call Jnlp#cache_resources to create a local cache of all the jar and nativelib resources.
|
24
24
|
|
25
|
-
|
25
|
+
The structure of the cache directory and the naming using for the jar and nativelib files is the same as that used by the Java Web Start Download Servlet, see:
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
Copyright (c) 2008 FIX
|
30
|
-
|
31
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
32
|
-
a copy of this software and associated documentation files (the
|
33
|
-
'Software'), to deal in the Software without restriction, including
|
34
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
35
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
36
|
-
permit persons to whom the Software is furnished to do so, subject to
|
37
|
-
the following conditions:
|
38
|
-
|
39
|
-
The above copyright notice and this permission notice shall be
|
40
|
-
included in all copies or substantial portions of the Software.
|
41
|
-
|
42
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
43
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
44
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
45
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
46
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
47
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
48
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27
|
+
http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/downloadservletguide.html
|
data/Rakefile
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
3
|
-
|
4
|
-
|
1
|
+
require 'rubygems'
|
2
|
+
require 'hoe'
|
3
|
+
|
4
|
+
require './lib/jnlp.rb'
|
5
|
+
|
6
|
+
Hoe.new('jnlp', Jnlp::VERSION) do |p|
|
7
|
+
p.rubyforge_name = 'rubywebstart' # if different than lowercase project name
|
8
|
+
p.author = 'Stephen Bannasch'
|
9
|
+
p.email = 'stephen.bannasch@gmail.com'
|
10
|
+
p.url = 'http://rubywebstart.rubyforge.org/jnlp/rdoc/'
|
11
|
+
p.summary = "Ruby tools for working with Java Web Start JNLPs."
|
12
|
+
p.description = "For manipulation of Java Web Start Jnlps and the resources they reference."
|
13
|
+
p.extra_deps << ['hpricot','=0.6.164']
|
14
|
+
end
|
data/config/hoe.rb
CHANGED
@@ -4,7 +4,7 @@ AUTHOR = 'Stephen Bannasch' # can also be an array of Authors
|
|
4
4
|
EMAIL = "stephen.bannasch@gmail.com"
|
5
5
|
DESCRIPTION = "For manipulation of Java Web Start Jnlps and the resources they reference."
|
6
6
|
GEM_NAME = 'jnlp' # what ppl will type to install your gem
|
7
|
-
RUBYFORGE_PROJECT = '
|
7
|
+
RUBYFORGE_PROJECT = 'rubywebstart' # The unix name for your project
|
8
8
|
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
9
9
|
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
|
10
10
|
|
@@ -53,6 +53,7 @@ $hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
|
53
53
|
p.description = DESCRIPTION
|
54
54
|
p.summary = DESCRIPTION
|
55
55
|
p.url = HOMEPATH
|
56
|
+
p.remote_rdoc_dir = 'jnlp' # Release to root
|
56
57
|
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
|
57
58
|
p.test_globs = ["test/**/test_*.rb"]
|
58
59
|
p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
|
data/lib/jnlp.rb
CHANGED
data/lib/jnlp/jnlp.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# :title: Jnlp::Jnlp RDoc
|
3
3
|
#
|
4
4
|
# to regenerate and display this rdoc:
|
5
|
-
# rdoc -U -SN jnlp.rb otrunk.rb ; open doc/index.html
|
5
|
+
# rdoc -U -SN jnlp.rb otrunk.rb maven_jnlp.rb; open doc/index.html
|
6
6
|
#
|
7
7
|
require 'rubygems'
|
8
8
|
require 'open-uri'
|
@@ -13,9 +13,9 @@ require 'date'
|
|
13
13
|
|
14
14
|
if RUBY_PLATFORM =~ /java/
|
15
15
|
include Java
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
java_import java.util.jar.JarInputStream unless defined? JarInputStream
|
17
|
+
java_import java.io.FileInputStream unless defined? FileInputStream
|
18
|
+
java_import java.net.URL unless defined? URL
|
19
19
|
end
|
20
20
|
|
21
21
|
unless Net::HTTP::Get.new('/')['User-Agent'] # unless a 'User-Agent' is already defined add one
|
@@ -471,7 +471,7 @@ module Jnlp #:nodoc:
|
|
471
471
|
#
|
472
472
|
# == Jnlp
|
473
473
|
#
|
474
|
-
# A
|
474
|
+
# A gem for encapsulating the content and resources referenced by Java Web Start jnlps
|
475
475
|
#
|
476
476
|
# For more information about the structure of Java Web Start see:
|
477
477
|
# * http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/contents.html
|
@@ -956,6 +956,9 @@ module Jnlp #:nodoc:
|
|
956
956
|
cp_jars = @jars.collect {|j| j.local_path}
|
957
957
|
cp_nativelibs = @nativelibs.collect {|n| n.local_path}
|
958
958
|
resources = cp_jars + cp_nativelibs
|
959
|
+
#
|
960
|
+
# FIXME: this should probably be more discriminatory
|
961
|
+
#
|
959
962
|
if options[:remove_jruby]
|
960
963
|
resources = resources.reject {|r| r =~ /\/jruby\//}
|
961
964
|
end
|
@@ -1037,6 +1040,9 @@ module Jnlp #:nodoc:
|
|
1037
1040
|
#
|
1038
1041
|
# This will add all the jars for this jnlp to the effective
|
1039
1042
|
# classpath for this Java process.
|
1043
|
+
#
|
1044
|
+
# *If* you are already running in JRuby *AND* the jnlp references a
|
1045
|
+
# JRuby resource the JRuby resource will not be required.
|
1040
1046
|
#
|
1041
1047
|
def require_resources
|
1042
1048
|
if RUBY_PLATFORM =~ /java/
|
@@ -0,0 +1,271 @@
|
|
1
|
+
# :main: Jnlp::Jnlp
|
2
|
+
# :title: Jnlp::Jnlp RDoc
|
3
|
+
#
|
4
|
+
# to regenerate and display this rdoc:
|
5
|
+
# rdoc -U -SN jnlp.rb otrunk.rb ; open doc/index.html
|
6
|
+
#
|
7
|
+
require 'open-uri'
|
8
|
+
require 'hpricot'
|
9
|
+
|
10
|
+
module Jnlp #:nodoc:
|
11
|
+
#
|
12
|
+
#
|
13
|
+
require "jnlp.rb"
|
14
|
+
|
15
|
+
# == VersionedJnlpUrl
|
16
|
+
#
|
17
|
+
# Encapsulates a versioned jnlp in a Maven Jnlp Web Start server.
|
18
|
+
#
|
19
|
+
class VersionedJnlpUrl
|
20
|
+
#
|
21
|
+
# Contains the the full path to the jnlp
|
22
|
+
#
|
23
|
+
# "/dev/org/concord/maven-jnlp/all-otrunk-snapshot/all-otrunk-snapshot-0.1.0-20070420.131610.jnlp"
|
24
|
+
#
|
25
|
+
attr_reader :path
|
26
|
+
#
|
27
|
+
# Contains the the full url to the jnlp
|
28
|
+
#
|
29
|
+
# "http://jnlp.concord.org/dev/org/concord/maven-jnlp/all-otrunk-snapshot/all-otrunk-snapshot-0.1.0-20090327.222627.jnlp"
|
30
|
+
#
|
31
|
+
attr_reader :url
|
32
|
+
#
|
33
|
+
#
|
34
|
+
# Contains the maven-jnlp version string for the jnlp
|
35
|
+
#
|
36
|
+
# "0.1.0-20090327.222627"
|
37
|
+
#
|
38
|
+
attr_reader :version
|
39
|
+
#
|
40
|
+
# Pass in:
|
41
|
+
#
|
42
|
+
# family_name, path, base_url
|
43
|
+
#
|
44
|
+
def initialize(family_name, path, base_url)
|
45
|
+
@path = path
|
46
|
+
@url = base_url + @path
|
47
|
+
@version = @url[/#{family_name}\/#{family_name}-(.*)\.jnlp/, 1]
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# == MavenJnlpFamily
|
52
|
+
#
|
53
|
+
# Encapsulates a single MavenJnlp Family of versioned jnlps.
|
54
|
+
#
|
55
|
+
class MavenJnlpFamily
|
56
|
+
#
|
57
|
+
# Contains the base_url for this MavenJnlp server
|
58
|
+
#
|
59
|
+
# Example:
|
60
|
+
#
|
61
|
+
# "http://jnlp.concord.org"
|
62
|
+
#
|
63
|
+
attr_reader :base_url
|
64
|
+
#
|
65
|
+
# Contains the path from the base_url to the root for
|
66
|
+
# this family of jnlps
|
67
|
+
#
|
68
|
+
# Example:
|
69
|
+
#
|
70
|
+
# "/dev/org/concord/maven-jnlp/"
|
71
|
+
#
|
72
|
+
attr_reader :path
|
73
|
+
#
|
74
|
+
# Contains the root url for this family of jnlps
|
75
|
+
#
|
76
|
+
# Example:
|
77
|
+
#
|
78
|
+
# "http://jnlp.concord.org/dev/org/concord/maven-jnlp/all-otrunk-snapshot"
|
79
|
+
#
|
80
|
+
attr_reader :url
|
81
|
+
#
|
82
|
+
# Contains the name for this family of jnlps
|
83
|
+
#
|
84
|
+
# Example:
|
85
|
+
#
|
86
|
+
# "all-otrunk-snapshot"
|
87
|
+
#
|
88
|
+
attr_reader :name
|
89
|
+
#
|
90
|
+
# Contains an array of VersionedJnlpUrls
|
91
|
+
#
|
92
|
+
attr_reader :versions
|
93
|
+
#
|
94
|
+
# Contains the version string for the latest versioned jnlp.
|
95
|
+
# This jnlp this version string refers to is identical to
|
96
|
+
# the snapshot jnlp at the of processing.
|
97
|
+
#
|
98
|
+
# Example:
|
99
|
+
#
|
100
|
+
# "0.1.0-20090327.222627"
|
101
|
+
#
|
102
|
+
attr_reader :snapshot_version
|
103
|
+
#
|
104
|
+
# Contains the VersionedJnlpUrl referencing the latest
|
105
|
+
# versioned jnlp. This jnlp is identical to the snapshot
|
106
|
+
# jnlp at the of processing.
|
107
|
+
#
|
108
|
+
attr_reader :snapshot
|
109
|
+
#
|
110
|
+
# Pass in:
|
111
|
+
#
|
112
|
+
# base_url, family_path
|
113
|
+
#
|
114
|
+
def initialize(base_url, family_path)
|
115
|
+
@base_url = base_url
|
116
|
+
@path = family_path
|
117
|
+
@url = @base_url + @path
|
118
|
+
@name = File.basename(@path)
|
119
|
+
@versions = []
|
120
|
+
doc = Hpricot(open(@url))
|
121
|
+
anchor_tags = doc.search("//a")
|
122
|
+
snapshot_version_path = anchor_tags.find {|a| a['href'][/CURRENT_VERSION\.txt$/] }['href']
|
123
|
+
@snapshot_version = open(base_url + snapshot_version_path).read
|
124
|
+
|
125
|
+
jnlp_paths = anchor_tags.find_all { |a| a['href'][/jnlp$/] }.collect { |a| a['href'] }
|
126
|
+
jnlp_paths.each do |jnlp_path|
|
127
|
+
|
128
|
+
# skip processing unless this jnlp has a version string
|
129
|
+
unless jnlp_path[/#{name}\.jnlp$/]
|
130
|
+
versioned_jnlp_url = VersionedJnlpUrl.new(@name, jnlp_path, @base_url)
|
131
|
+
@versions << versioned_jnlp_url
|
132
|
+
if versioned_jnlp_url.version == @snapshot_version
|
133
|
+
@snapshot = versioned_jnlp_url
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
# == MavenJnlp
|
142
|
+
#
|
143
|
+
# Given the url to the root of an active MavenJnlp web start servlet
|
144
|
+
# a new instance of MavenJnlp will find all the families, all the
|
145
|
+
# versions for each family, and determine the current version.
|
146
|
+
#
|
147
|
+
# Example:
|
148
|
+
#
|
149
|
+
# require 'jnlp'
|
150
|
+
# mj = Jnlp::MavenJnlp.new('http://jnlp.concord.org', '/dev/org/concord/maven-jnlp/')
|
151
|
+
#
|
152
|
+
# This takes about 90s on a 3Mbps connection processing Concord's
|
153
|
+
# Maven Jnlp Web Start server.
|
154
|
+
#
|
155
|
+
# You can now do this:
|
156
|
+
#
|
157
|
+
# mj.maven_jnlp_families.length # => 26
|
158
|
+
# mj.maven_jnlp_families[0].name # => "all-otrunk-snapshot"
|
159
|
+
# mj.maven_jnlp_families[0].versions.length # => 1568
|
160
|
+
# mj.maven_jnlp_families[0].versions.first.version # => "0.1.0-20070420.131610"
|
161
|
+
# mj.maven_jnlp_families[0].snapshot_version # => "0.1.0-20090327.222627"
|
162
|
+
#
|
163
|
+
# mj.maven_jnlp_families[0].versions.last.url
|
164
|
+
#
|
165
|
+
# # => "/dev/org/concord/maven-jnlp/all-otrunk-snapshot/all-otrunk-snapshot-0.1.0-20090327.222627.jnlp"
|
166
|
+
#
|
167
|
+
# mj.maven_jnlp_families[0].snapshot.url
|
168
|
+
#
|
169
|
+
# # => "/dev/org/concord/maven-jnlp/all-otrunk-snapshot/all-otrunk-snapshot-0.1.0-20090327.222627.jnlp"
|
170
|
+
#
|
171
|
+
# mj.maven_jnlp_families[0].versions.first.url
|
172
|
+
#
|
173
|
+
# # => "/dev/org/concord/maven-jnlp/all-otrunk-snapshot/all-otrunk-snapshot-0.1.0-20070420.131610.jnlp"
|
174
|
+
#
|
175
|
+
class MavenJnlp
|
176
|
+
#
|
177
|
+
# Contains the base_url for this MavenJnlp server
|
178
|
+
#
|
179
|
+
# Example:
|
180
|
+
#
|
181
|
+
# 'http://jnlp.concord.org'
|
182
|
+
#
|
183
|
+
attr_reader :base_url
|
184
|
+
#
|
185
|
+
# Contains the path to the jnlp families for
|
186
|
+
# this MavenJnlp server
|
187
|
+
#
|
188
|
+
# Example:
|
189
|
+
#
|
190
|
+
# '/dev/org/concord/maven-jnlp/'
|
191
|
+
#
|
192
|
+
attr_reader :jnlp_families_path
|
193
|
+
#
|
194
|
+
# Contains the url to the jnlp families for
|
195
|
+
# this MavenJnlp server
|
196
|
+
#
|
197
|
+
# Example:
|
198
|
+
#
|
199
|
+
# 'http://jnlp.concord.org/dev/org/concord/maven-jnlp/'
|
200
|
+
#
|
201
|
+
attr_reader :jnlp_families_url
|
202
|
+
#
|
203
|
+
# Contains an array of MavenJnlpFamilies
|
204
|
+
#
|
205
|
+
attr_reader :maven_jnlp_families
|
206
|
+
#
|
207
|
+
# Pass in:
|
208
|
+
#
|
209
|
+
# base_url, maven_jnlp_path
|
210
|
+
#
|
211
|
+
def initialize(base_url, jnlp_families_path)
|
212
|
+
@base_url = base_url
|
213
|
+
@jnlp_families_path = jnlp_families_path
|
214
|
+
@jnlp_families_url = @base_url + @jnlp_families_path
|
215
|
+
@maven_jnlp_families = []
|
216
|
+
doc = Hpricot(open(@jnlp_families_url))
|
217
|
+
family_paths = doc.search("//a").find_all { |a|
|
218
|
+
a['href'][/#{@jnlp_families_path}/] }.collect { |a| a['href'] }
|
219
|
+
family_paths.each do |family_path|
|
220
|
+
maven_jnlp_family = MavenJnlpFamily.new(@base_url, family_path)
|
221
|
+
@maven_jnlp_families << maven_jnlp_family
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
#
|
226
|
+
# summarize
|
227
|
+
#
|
228
|
+
# Display a summary of the jnlp families and versions
|
229
|
+
# available on stdout.
|
230
|
+
#
|
231
|
+
# Example:
|
232
|
+
#
|
233
|
+
# require 'jnlp'
|
234
|
+
# mj = Jnlp::MavenJnlp.new('http://jnlp.concord.org', '/dev/org/concord/maven-jnlp/')
|
235
|
+
# mj.summarize
|
236
|
+
#
|
237
|
+
# Maven Jnlp families: 26
|
238
|
+
#
|
239
|
+
# name: all-otrunk-snapshot
|
240
|
+
# versions: 1568
|
241
|
+
# current snapshot version: 0.1.0-20090327.222627
|
242
|
+
#
|
243
|
+
# name: all-otrunk-snapshot-with-installer
|
244
|
+
# versions: 167
|
245
|
+
# current snapshot version: 0.1.0-20090327.222727
|
246
|
+
#
|
247
|
+
# name: capa-measuring-resistance
|
248
|
+
# versions: 1496
|
249
|
+
# current snapshot version: 0.1.0-20090327.222729
|
250
|
+
#
|
251
|
+
# name: capa-otrunk
|
252
|
+
# versions: 1172
|
253
|
+
# current snapshot version: 0.1.0-20090327.222733
|
254
|
+
#
|
255
|
+
# ...
|
256
|
+
#
|
257
|
+
def summarize
|
258
|
+
puts
|
259
|
+
puts "Maven Jnlp families: #{@maven_jnlp_families.length}"
|
260
|
+
puts
|
261
|
+
@maven_jnlp_families.each do |family|
|
262
|
+
puts "name: #{family.name}"
|
263
|
+
puts " versions: #{family.versions.length}"
|
264
|
+
puts " current snapshot version: #{family.snapshot_version}"
|
265
|
+
puts
|
266
|
+
end
|
267
|
+
puts
|
268
|
+
end
|
269
|
+
|
270
|
+
end
|
271
|
+
end
|
data/lib/jnlp/otrunk.rb
CHANGED
@@ -11,12 +11,12 @@ require 'net/http'
|
|
11
11
|
require 'date'
|
12
12
|
|
13
13
|
if RUBY_PLATFORM =~ /java/
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
java_import java.util.jar.JarInputStream unless defined? JarInputStream
|
15
|
+
java_import java.io.FileInputStream unless defined? FileInputStream
|
16
|
+
java_import java.net.URL unless defined? URL
|
17
|
+
java_import java.util.Collection unless defined? Collection
|
18
|
+
java_import java.util.List unless defined? List
|
19
|
+
java_import java.util.ArrayList unless defined? ArrayList
|
20
20
|
#
|
21
21
|
# Used to refer to Java classes in the java.io package.
|
22
22
|
# Some of the class names in the java.io package have the
|
@@ -87,9 +87,9 @@ module Jnlp #:nodoc:
|
|
87
87
|
#
|
88
88
|
require "#{File.expand_path(File.dirname(__FILE__))}/jnlp.rb"
|
89
89
|
#
|
90
|
-
# Jnlp::Otrunk is a subclass of Jnlp::Jnlp that adds SAIL
|
91
|
-
#
|
92
|
-
#
|
90
|
+
# Jnlp::Otrunk is a subclass of Jnlp::Jnlp that adds SAIL-Otrunk[https://confluence.concord.org/display/CSP/OTrunk]
|
91
|
+
# specific methods for execution.of the jnlp locally without
|
92
|
+
# using Java Web Start.
|
93
93
|
#
|
94
94
|
# It assumes a default main-class of:
|
95
95
|
#
|
data/lib/jnlp/version.rb
CHANGED
@@ -1,9 +1,30 @@
|
|
1
1
|
module Jnlp #:nodoc:
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
2
|
+
VERSION = '0.0.4'
|
3
|
+
#
|
4
|
+
# Let's see if this patch:
|
5
|
+
#
|
6
|
+
# http://rubyforge.org/tracker/index.php?func=detail&aid=24392&group_id=126&atid=577
|
7
|
+
#
|
8
|
+
# makes it into RubyGems -- it has been applied.
|
9
|
+
# Will probably be part of 1.3.2.
|
10
|
+
#
|
11
|
+
# then I can start using this form again:
|
12
|
+
#
|
13
|
+
# module VERSION
|
14
|
+
# MAJOR = 0
|
15
|
+
# MINOR = 0
|
16
|
+
# TINY = 4
|
17
|
+
#
|
18
|
+
# STRING = [MAJOR, MINOR, TINY].join('.')
|
19
|
+
#
|
20
|
+
# class << self
|
21
|
+
# def to_s
|
22
|
+
# STRING
|
23
|
+
# end
|
24
|
+
#
|
25
|
+
# def ==(arg)
|
26
|
+
# STRING == arg
|
27
|
+
# end
|
28
|
+
# end
|
29
|
+
# end
|
9
30
|
end
|
data/website/index.html
CHANGED
@@ -1,11 +1,63 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
<title>
|
8
|
+
jnlp
|
9
|
+
</title>
|
10
|
+
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
|
11
|
+
<style>
|
12
|
+
|
13
|
+
</style>
|
14
|
+
<script type="text/javascript">
|
15
|
+
window.onload = function() {
|
16
|
+
settings = {
|
17
|
+
tl: { radius: 10 },
|
18
|
+
tr: { radius: 10 },
|
19
|
+
bl: { radius: 10 },
|
20
|
+
br: { radius: 10 },
|
21
|
+
antiAlias: true,
|
22
|
+
autoPad: true,
|
23
|
+
validTags: ["div"]
|
24
|
+
}
|
25
|
+
var versionBox = new curvyCorners(settings, document.getElementById("version"));
|
26
|
+
versionBox.applyCornersToAll();
|
27
|
+
}
|
28
|
+
</script>
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="main">
|
32
|
+
|
33
|
+
<h1>jnlp</h1>
|
34
|
+
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/jnlp"; return false'>
|
35
|
+
<p>Get Version</p>
|
36
|
+
<a href="http://rubyforge.org/projects/jnlp" class="numbers">0.0.3</a>
|
37
|
+
</div>
|
38
|
+
<h1>&#x2192; ‘jnlp’</h1>
|
39
|
+
<h2>What</h2>
|
40
|
+
<h2>Installing</h2>
|
41
|
+
<p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">jnlp</span></pre></p>
|
42
|
+
<h2>The basics</h2>
|
43
|
+
<h2>Demonstration of usage</h2>
|
44
|
+
<h2>Forum</h2>
|
45
|
+
<p><a href="http://groups.google.com/group/jnlp">http://groups.google.com/group/jnlp</a></p>
|
46
|
+
<p><span class="caps">TODO</span> – create Google Group – jnlp</p>
|
47
|
+
<h2>How to submit patches</h2>
|
48
|
+
<p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people’s code</a> and for section <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups">8b: Submit patch to Google Groups</a>, use the Google Group above.</p>
|
49
|
+
<p>The trunk repository is <code>svn://rubyforge.org/var/svn/jnlp/trunk</code> for anonymous access.</p>
|
50
|
+
<h2>License</h2>
|
51
|
+
<p>This code is free to use under the terms of the <span class="caps">MIT</span> license.</p>
|
52
|
+
<h2>Contact</h2>
|
53
|
+
<p>Comments are welcome. Send an email to <a href="mailto:FIXME"><span class="caps">FIXME</span> full name</a> email via the <a href="http://groups.google.com/group/jnlp">forum</a></p>
|
54
|
+
<p class="coda">
|
55
|
+
<a href="FIXME email">FIXME full name</a>, 12th May 2008<br>
|
56
|
+
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
57
|
+
</p>
|
58
|
+
</div>
|
59
|
+
|
60
|
+
<!-- insert site tracking codes here, like Google Urchin -->
|
61
|
+
|
62
|
+
</body>
|
63
|
+
</html>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jnlp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Bannasch
|
@@ -9,9 +9,19 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-30 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: hpricot
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - "="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.6.164
|
24
|
+
version:
|
15
25
|
- !ruby/object:Gem::Dependency
|
16
26
|
name: hoe
|
17
27
|
type: :development
|
@@ -20,11 +30,10 @@ dependencies:
|
|
20
30
|
requirements:
|
21
31
|
- - ">="
|
22
32
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.
|
33
|
+
version: 1.11.1
|
24
34
|
version:
|
25
35
|
description: For manipulation of Java Web Start Jnlps and the resources they reference.
|
26
|
-
email:
|
27
|
-
- stephen.bannasch@gmail.com
|
36
|
+
email: stephen.bannasch@gmail.com
|
28
37
|
executables: []
|
29
38
|
|
30
39
|
extensions: []
|
@@ -47,6 +56,7 @@ files:
|
|
47
56
|
- lib/jnlp/version.rb
|
48
57
|
- lib/jnlp/jnlp.rb
|
49
58
|
- lib/jnlp/otrunk.rb
|
59
|
+
- lib/jnlp/maven_jnlp.rb
|
50
60
|
- log/debug.log
|
51
61
|
- script/console
|
52
62
|
- script/destroy
|
@@ -64,7 +74,7 @@ files:
|
|
64
74
|
- website/stylesheets/screen.css
|
65
75
|
- website/template.html.erb
|
66
76
|
has_rdoc: true
|
67
|
-
homepage: http://
|
77
|
+
homepage: http://rubywebstart.rubyforge.org/jnlp/rdoc/
|
68
78
|
post_install_message:
|
69
79
|
rdoc_options:
|
70
80
|
- --main
|
@@ -85,11 +95,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
95
|
version:
|
86
96
|
requirements: []
|
87
97
|
|
88
|
-
rubyforge_project:
|
98
|
+
rubyforge_project: rubywebstart
|
89
99
|
rubygems_version: 1.3.1
|
90
100
|
signing_key:
|
91
101
|
specification_version: 2
|
92
|
-
summary:
|
102
|
+
summary: Ruby tools for working with Java Web Start JNLPs.
|
93
103
|
test_files:
|
94
104
|
- test/test_helper.rb
|
95
105
|
- test/test_jnlp.rb
|