jruby-launcher 1.0.8-java → 1.0.9-java

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- require 'rake/gempackagetask'
1
+ require 'rubygems/package_task'
2
2
  require 'date'
3
3
 
4
4
  begin
@@ -43,7 +43,7 @@ task :gemspec => './lib/jruby-launcher.rb' do
43
43
  end
44
44
 
45
45
  task :package => :gemspec do
46
- Rake::GemPackageTask.new(@gemspec) do |pkg|
46
+ Gem::PackageTask.new(@gemspec) do |pkg|
47
47
  end
48
48
  Rake::Task['gem'].invoke
49
49
  end
data/argparser.cpp CHANGED
@@ -230,6 +230,16 @@ bool ArgParser::parseArgs(int argc, char *argv[]) {
230
230
  noBootClassPath = true;
231
231
  }
232
232
 
233
+ const char *java_mem = getenv("JAVA_MEM");
234
+ if (java_mem != NULL) {
235
+ javaOptions.push_back(java_mem);
236
+ }
237
+
238
+ const char *java_stack = getenv("JAVA_STACK");
239
+ if (java_stack != NULL) {
240
+ javaOptions.push_back(java_stack);
241
+ }
242
+
233
243
  addToArgList(args, argc, argv);
234
244
 
235
245
  logMsg("Parsing arguments:");
@@ -1,3 +1,3 @@
1
1
  module JRubyLauncher
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
data/ng.c CHANGED
@@ -576,7 +576,7 @@ int nailgunClientMain(int argc, char *argv[], char *env[]) {
576
576
 
577
577
  if (connect(nailgunsocket, (struct sockaddr *)&server_addr,
578
578
  sizeof(struct sockaddr)) == -1) {
579
- perror("connect");
579
+ perror("connect to Nailgun server");
580
580
  cleanUpAndExit(NAILGUN_CONNECT_FAILED);
581
581
  }
582
582
 
@@ -196,6 +196,19 @@ describe "JRuby native launcher" do
196
196
  end
197
197
  end
198
198
 
199
+ # JRUBY-6016
200
+ it "should honor JAVA_MEM" do
201
+ with_environment "JAVA_MEM" => "-Xmx768m" do
202
+ jruby_launcher_args("").should include("-Xmx768m", "-Djruby.memory.max=768m")
203
+ end
204
+ end
205
+
206
+ it "should honor JAVA_STACK" do
207
+ with_environment "JAVA_STACK" => "-Xss3072k" do
208
+ jruby_launcher_args("").should include("-Xss3072k", "-Djruby.stack.max=3072k")
209
+ end
210
+ end
211
+
199
212
  it "should print the version" do
200
213
  jruby_launcher("-Xversion 2>&1").should =~ /Launcher Version [0-9.]+/
201
214
  end
data/version.h CHANGED
@@ -6,6 +6,6 @@
6
6
  #ifndef _VERSION_H_
7
7
  #define _VERSION_H_
8
8
 
9
- #define JRUBY_LAUNCHER_VERSION "1.0.8"
9
+ #define JRUBY_LAUNCHER_VERSION "1.0.9"
10
10
 
11
11
  #endif // ! _VERSION_H_
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jruby-launcher
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.8
5
+ version: 1.0.9
6
6
  platform: java
7
7
  authors:
8
8
  - Nick Sieger
@@ -11,8 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-08-15 00:00:00 -05:00
15
- default_executable:
14
+ date: 2011-10-25 00:00:00 Z
16
15
  dependencies: []
17
16
 
18
17
  description: Builds and installs a native launcher for JRuby on your system
@@ -59,7 +58,6 @@ files:
59
58
  - spec/spec_helper.rb
60
59
  - resources/jruby.ico
61
60
  - resources/jruby.rc
62
- has_rdoc: true
63
61
  homepage: http://jruby.org
64
62
  licenses: []
65
63
 
@@ -83,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
81
  requirements: []
84
82
 
85
83
  rubyforge_project: jruby-extras
86
- rubygems_version: 1.5.1
84
+ rubygems_version: 1.8.9
87
85
  signing_key:
88
86
  specification_version: 3
89
87
  summary: Native launcher for JRuby