1 31 package org.jruby.runtime; 32 33 import java.io.IOException ; 34 import java.util.Properties ; 35 36 public final class Constants { 37 private static final Properties properties = new Properties (); 38 public static final String PLATFORM = "java"; 39 40 public static final int MARSHAL_MAJOR = 4; 41 public static final int MARSHAL_MINOR = 8; 42 43 public static final String RUBY_MAJOR_VERSION; 44 public static final String RUBY_VERSION; 45 public static final String COMPILE_DATE; 46 public static final String VERSION; 47 48 static { 49 try { 50 properties.load(Constants.class.getResourceAsStream("/jruby.properties")); 51 } catch (IOException ioe) { 52 ioe.printStackTrace(); 53 } 54 55 RUBY_MAJOR_VERSION = properties.getProperty("version.ruby.major"); 56 RUBY_VERSION = properties.getProperty("version.ruby"); 57 COMPILE_DATE = properties.getProperty("release.date"); 58 VERSION = properties.getProperty("version.jruby"); 59 } 60 61 private Constants() {} 62 } 63 | Popular Tags |