Sha256: 2752e0331f729153ed711006adbe41a670c66f97054dd7ae6a67deedfb5b0b4c
Contents?: true
Size: 1.58 KB
Versions: 3
Compression:
Stored size: 1.58 KB
Contents
# Copyright (c) 2010 The Mirah project authors. All Rights Reserved. # All contributing project authors may be found in the NOTICE file. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'bitescript' module Mirah module Util class CompilationState def initialize @save_extensions = true end attr_accessor :verbose, :destination attr_accessor :version_printed attr_accessor :help_printed attr_accessor :save_extensions attr_accessor :running alias running? running attr_accessor :compiler_class attr_accessor :args attr_accessor :command def set_jvm_version(ver_str) case ver_str when '1.4' BiteScript.bytecode_version = BiteScript::JAVA1_4 when '1.5' BiteScript.bytecode_version = BiteScript::JAVA1_5 when '1.6' BiteScript.bytecode_version = BiteScript::JAVA1_6 when '1.7' BiteScript.bytecode_version = BiteScript::JAVA1_7 else $stderr.puts "invalid bytecode version specified: #{ver_str}" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mirah-0.0.10-java | lib/mirah/util/compilation_state.rb |
mirah-0.0.9-java | lib/mirah/util/compilation_state.rb |
mirah-0.0.8-java | lib/mirah/util/compilation_state.rb |