jruby-launcher 1.1.9-java → 1.1.15-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +3 -0
- data/Rakefile +1 -2
- data/argparser.cpp +55 -14
- data/argparser.h +1 -0
- data/extconf.rb +7 -0
- data/inc/Makefile-conf.mk +5 -0
- data/lib/jruby-launcher.rb +1 -1
- data/pkg/jruby-launcher-1.1.14-java/extconf.rb +12 -0
- data/pkg/{jruby-launcher-1.1.8-java → jruby-launcher-1.1.14-java}/lib/jruby-launcher.rb +1 -1
- data/pkg/{jruby-launcher-1.1.5-java → jruby-launcher-1.1.14-java}/lib/rubygems/defaults/jruby_native.rb +0 -0
- data/pkg/{jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java → jruby-launcher-1.1.14-java}/spec/launcher_spec.rb +23 -0
- data/pkg/{jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java → jruby-launcher-1.1.14-java}/spec/spec_helper.rb +0 -5
- data/platformlauncher.cpp +20 -5
- data/rb_w32_cmdvector.h +3 -3
- data/spec/launcher_spec.rb +33 -3
- data/spec/spec_helper.rb +0 -5
- data/unixlauncher.cpp +10 -0
- data/utilsfuncs.cpp +13 -1
- data/utilsfuncs.h +1 -0
- data/utilsfuncswin.cpp +20 -2
- data/version.h +1 -1
- metadata +8 -79
- data/pkg/jruby-launcher-1.1.5-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.5-java/lib/jruby-launcher.rb +0 -3
- data/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/lib/jruby-launcher.rb +0 -3
- data/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/lib/rubygems/defaults/jruby_native.rb +0 -4
- data/pkg/jruby-launcher-1.1.5-java/spec/launcher_spec.rb +0 -258
- data/pkg/jruby-launcher-1.1.5-java/spec/spec_helper.rb +0 -81
- data/pkg/jruby-launcher-1.1.5.pre-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.5.pre-java/lib/jruby-launcher.rb +0 -3
- data/pkg/jruby-launcher-1.1.5.pre-java/lib/rubygems/defaults/jruby_native.rb +0 -4
- data/pkg/jruby-launcher-1.1.5.pre-java/spec/launcher_spec.rb +0 -258
- data/pkg/jruby-launcher-1.1.5.pre-java/spec/spec_helper.rb +0 -81
- data/pkg/jruby-launcher-1.1.7-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.7-java/lib/jruby-launcher.rb +0 -3
- data/pkg/jruby-launcher-1.1.7-java/lib/rubygems/defaults/jruby_native.rb +0 -4
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/lib/jruby-launcher.rb +0 -3
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/lib/rubygems/defaults/jruby_native.rb +0 -4
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/lib/jruby-launcher.rb +0 -3
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/lib/rubygems/defaults/jruby_native.rb +0 -4
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/spec/launcher_spec.rb +0 -258
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/spec/spec_helper.rb +0 -81
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/spec/launcher_spec.rb +0 -258
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/spec/spec_helper.rb +0 -81
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5.pre-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5.pre-java/lib/jruby-launcher.rb +0 -3
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5.pre-java/lib/rubygems/defaults/jruby_native.rb +0 -4
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5.pre-java/spec/launcher_spec.rb +0 -258
- data/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5.pre-java/spec/spec_helper.rb +0 -81
- data/pkg/jruby-launcher-1.1.7-java/spec/launcher_spec.rb +0 -258
- data/pkg/jruby-launcher-1.1.7-java/spec/spec_helper.rb +0 -81
- data/pkg/jruby-launcher-1.1.8-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.8-java/lib/rubygems/defaults/jruby_native.rb +0 -4
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5-java/lib/jruby-launcher.rb +0 -3
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5-java/lib/rubygems/defaults/jruby_native.rb +0 -4
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/lib/jruby-launcher.rb +0 -3
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/lib/rubygems/defaults/jruby_native.rb +0 -4
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/spec/launcher_spec.rb +0 -258
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/spec/spec_helper.rb +0 -81
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5-java/spec/launcher_spec.rb +0 -258
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5-java/spec/spec_helper.rb +0 -81
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5.pre-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5.pre-java/lib/jruby-launcher.rb +0 -3
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5.pre-java/lib/rubygems/defaults/jruby_native.rb +0 -4
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5.pre-java/spec/launcher_spec.rb +0 -258
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.5.pre-java/spec/spec_helper.rb +0 -81
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/lib/jruby-launcher.rb +0 -3
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/lib/rubygems/defaults/jruby_native.rb +0 -4
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/lib/jruby-launcher.rb +0 -3
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/lib/rubygems/defaults/jruby_native.rb +0 -4
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/lib/jruby-launcher.rb +0 -3
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/lib/rubygems/defaults/jruby_native.rb +0 -4
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/spec/launcher_spec.rb +0 -258
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/pkg/jruby-launcher-1.1.5.pre-java/spec/spec_helper.rb +0 -81
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/spec/launcher_spec.rb +0 -258
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5-java/spec/spec_helper.rb +0 -81
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5.pre-java/extconf.rb +0 -5
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5.pre-java/lib/jruby-launcher.rb +0 -3
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5.pre-java/lib/rubygems/defaults/jruby_native.rb +0 -4
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5.pre-java/spec/launcher_spec.rb +0 -258
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/pkg/jruby-launcher-1.1.5.pre-java/spec/spec_helper.rb +0 -81
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/spec/launcher_spec.rb +0 -258
- data/pkg/jruby-launcher-1.1.8-java/pkg/jruby-launcher-1.1.7-java/spec/spec_helper.rb +0 -81
- data/pkg/jruby-launcher-1.1.8-java/spec/launcher_spec.rb +0 -258
- data/pkg/jruby-launcher-1.1.8-java/spec/spec_helper.rb +0 -81
@@ -1,81 +0,0 @@
|
|
1
|
-
require 'rspec'
|
2
|
-
require 'rbconfig'
|
3
|
-
require 'fileutils'
|
4
|
-
|
5
|
-
if defined?(JRUBY_VERSION)
|
6
|
-
require 'jruby'
|
7
|
-
JRuby.runtime.instance_config.run_ruby_in_process = false
|
8
|
-
end
|
9
|
-
|
10
|
-
module JRubyLauncherHelper
|
11
|
-
JRUBY_EXE = ''
|
12
|
-
WINDOWS = RbConfig::CONFIG['target_os'] =~ /mswin/
|
13
|
-
|
14
|
-
def self.check_executable_built
|
15
|
-
exe = File.expand_path("../../jruby", __FILE__) + RbConfig::CONFIG['EXEEXT']
|
16
|
-
unless File.executable?(exe)
|
17
|
-
raise "Error: launcher executable not built; type `make' before continuing."
|
18
|
-
end
|
19
|
-
top = File.dirname(exe)
|
20
|
-
name = File.basename(exe)
|
21
|
-
home = File.join(top, "build/home")
|
22
|
-
FileUtils.mkdir_p(File.join(home, "bin"))
|
23
|
-
FileUtils.cp(exe, File.join(home, "bin"))
|
24
|
-
if JRubyLauncherHelper::WINDOWS
|
25
|
-
FileUtils.cp(exe.sub(/exe/, 'dll'), File.join(home, "bin"))
|
26
|
-
end
|
27
|
-
FileUtils.mkdir_p(File.join(home, "lib"))
|
28
|
-
FileUtils.touch(File.join(home, "lib/jruby.jar"))
|
29
|
-
JRUBY_EXE.concat File.join(home, "bin", name)
|
30
|
-
end
|
31
|
-
|
32
|
-
def jruby_launcher(args)
|
33
|
-
`#{JRUBY_EXE} #{args}`
|
34
|
-
end
|
35
|
-
|
36
|
-
def jruby_launcher_args(args)
|
37
|
-
jruby_launcher("-Xcommand #{args}").split("\n")
|
38
|
-
end
|
39
|
-
|
40
|
-
def last_exit_code
|
41
|
-
$?.exitstatus
|
42
|
-
end
|
43
|
-
|
44
|
-
def windows?
|
45
|
-
WINDOWS
|
46
|
-
end
|
47
|
-
|
48
|
-
def classpath_arg(args)
|
49
|
-
index = args.index("-cp")
|
50
|
-
index.should > 0
|
51
|
-
args[index + 1]
|
52
|
-
end
|
53
|
-
|
54
|
-
def with_environment(pairs = {})
|
55
|
-
prev_env = {}
|
56
|
-
pairs.each_pair do |k,v|
|
57
|
-
prev_env[k] = ENV[k] if ENV.has_key?(k)
|
58
|
-
ENV[k] = v
|
59
|
-
end
|
60
|
-
begin
|
61
|
-
yield
|
62
|
-
ensure
|
63
|
-
pairs.keys.each {|k| ENV.delete(k)}
|
64
|
-
ENV.update(prev_env)
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
RSpec.configure do |config|
|
70
|
-
config.before(:all) do
|
71
|
-
JRubyLauncherHelper.check_executable_built
|
72
|
-
# clear environment for better control
|
73
|
-
ENV.delete("JAVA_HOME")
|
74
|
-
ENV.delete("JRUBY_HOME")
|
75
|
-
ENV.delete("JAVA_OPTS")
|
76
|
-
ENV.delete("JRUBY_OPTS")
|
77
|
-
ENV.delete("CLASSPATH")
|
78
|
-
ENV.delete("JAVA_ENCODING")
|
79
|
-
end
|
80
|
-
config.include(JRubyLauncherHelper)
|
81
|
-
end
|