jruby-launcher 1.0.2-java → 1.0.3-java

Sign up to get free protection for your applications and to get access to all the features.
data/argparser.cpp CHANGED
@@ -37,7 +37,9 @@ Options:\n\
37
37
  -Xnobootclasspath don't put jruby jars on the bootclasspath\n\
38
38
  \nMisc:\n\
39
39
  -Xtrace <path> path for launcher log (for troubleshooting)\n\
40
- -Xcommand just print the equivalent java command and exit\n"
40
+ -Xcommand just print the equivalent java command and exit\n\
41
+ -Xprop.erty[=value] equivalent to -J-Djruby.<prop.erty>[=value]\n\
42
+ -Xproperties list supported properties (omit \"jruby.\" with -X)\n"
41
43
  #ifdef WIN32
42
44
  " -Xconsole <mode> jrubyw console attach mode (new|attach|suppress)\n\n"
43
45
  #endif
@@ -316,6 +318,14 @@ bool ArgParser::parseArgs(int argc, char *argv[]) {
316
318
  } else if (strcmp(it->c_str(), "-Xversion") == 0) {
317
319
  printToConsole("JRuby Launcher Version " JRUBY_LAUNCHER_VERSION "\n");
318
320
  return false;
321
+ } else if (strcmp(it->c_str(), "-Xproperties") == 0) {
322
+ progArgs.push_back(std::string("--properties"));
323
+ } else if (it->compare(0, 2, "-X", 2) == 0 && islower(it->c_str()[2])) {
324
+ // Any other /-X([a-z].*)/ get turned into a -Djruby.\1 property
325
+ std::string propPart = it->substr(2);
326
+ std::string propSet = std::string("-Djruby.");
327
+ propSet += propPart;
328
+ javaOptions.push_back(propSet);
319
329
  } else {
320
330
  progArgs.push_back(*it);
321
331
  }
@@ -1,3 +1,3 @@
1
1
  module JRubyLauncher
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -60,6 +60,14 @@ describe "JRuby native launcher" do
60
60
  jruby_launcher_args("-J-Darg1=value1 -J-Darg2=value2").should include("-Darg1=value1", "-Darg2=value2")
61
61
  end
62
62
 
63
+ it "should pass -Xprop.erty=value as -J-Djruby.prop.erty=value" do
64
+ jruby_launcher_args("-Xprop.erty=value").should include("-Djruby.prop.erty=value")
65
+ end
66
+
67
+ it "should pass -Xproperties as --properties" do
68
+ jruby_launcher_args("-Xproperties").should include("--properties")
69
+ end
70
+
63
71
  it "should default to 500m max heap" do
64
72
  jruby_launcher_args("").should include("-Xmx500m", "-Djruby.memory.max=500m")
65
73
  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.1"
9
+ #define JRUBY_LAUNCHER_VERSION "1.0.3"
10
10
 
11
11
  #endif // ! _VERSION_H_
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 2
9
- version: 1.0.2
8
+ - 3
9
+ version: 1.0.3
10
10
  platform: java
11
11
  authors:
12
12
  - Nick Sieger
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-11 00:00:00 -06:00
18
+ date: 2010-11-30 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies: []
21
21