Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.ruby.runtime/src/com/oracle/truffle/ruby/runtime/configuration/ConfigurationBuilder.java @ 13645:497fada09efb
Ruby: remove versioning.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Wed, 15 Jan 2014 19:27:27 +0000 |
parents | dd0ba029bf34 |
children | 50c11b9a7fdf |
comparison
equal
deleted
inserted
replaced
13640:bfe7a8c8c3c6 | 13645:497fada09efb |
---|---|
23 */ | 23 */ |
24 public static final String JRUBY_STDLIB_JAR = "lib/jruby-stdlib-1.7.4.jar"; | 24 public static final String JRUBY_STDLIB_JAR = "lib/jruby-stdlib-1.7.4.jar"; |
25 | 25 |
26 private String standardLibrary = JRUBY_STDLIB_JAR; | 26 private String standardLibrary = JRUBY_STDLIB_JAR; |
27 | 27 |
28 private RubyVersion rubyVersion = RubyVersion.RUBY_19; | |
29 | |
30 private boolean debug = false; | 28 private boolean debug = false; |
31 private boolean verbose = false; | 29 private boolean verbose = false; |
32 private int warningLevel = 0; | 30 private int warningLevel = 0; |
33 private int taintCheckLevel = 0; | 31 private int taintCheckLevel = 0; |
34 | 32 |
65 public ConfigurationBuilder(Configuration configuration) { | 63 public ConfigurationBuilder(Configuration configuration) { |
66 assert configuration != null; | 64 assert configuration != null; |
67 | 65 |
68 standardLibrary = configuration.getStandardLibrary(); | 66 standardLibrary = configuration.getStandardLibrary(); |
69 | 67 |
70 rubyVersion = configuration.getRubyVersion(); | |
71 | |
72 debug = configuration.getDebug(); | 68 debug = configuration.getDebug(); |
73 verbose = configuration.getVerbose(); | 69 verbose = configuration.getVerbose(); |
74 warningLevel = configuration.getWarningLevel(); | 70 warningLevel = configuration.getWarningLevel(); |
75 taintCheckLevel = configuration.getTaintCheckLevel(); | 71 taintCheckLevel = configuration.getTaintCheckLevel(); |
76 | 72 |
97 public void setStandardLibrary(String standardLibrary) { | 93 public void setStandardLibrary(String standardLibrary) { |
98 assert standardLibrary != null; | 94 assert standardLibrary != null; |
99 this.standardLibrary = standardLibrary; | 95 this.standardLibrary = standardLibrary; |
100 } | 96 } |
101 | 97 |
102 public RubyVersion getRubyVersion() { | |
103 return rubyVersion; | |
104 } | |
105 | |
106 public void setRubyVersion(RubyVersion rubyVersion) { | |
107 assert rubyVersion != null; | |
108 this.rubyVersion = rubyVersion; | |
109 } | |
110 | |
111 public boolean getDebug() { | 98 public boolean getDebug() { |
112 return debug; | 99 return debug; |
113 } | 100 } |
114 | 101 |
115 public void setDebug(boolean debug) { | 102 public void setDebug(boolean debug) { |