1 16 package com.buchuki.ensmer; 17 18 import java.util.Properties ; 19 20 27 public class Ensmer { 28 29 39 public static void main(String [] arguments) { 40 System.out.println("ENSMER_HOME: " + System.getenv("ENSMER_HOME")); 41 System.out.println("CLASSPATH: " + System.getProperty("java.class.path")); 42 Properties props = new Properties (); 43 for (String s : arguments) { 44 int equals = s.indexOf("="); 45 if (equals > 0) { 46 String key = s.substring(0, equals); 47 String value = s.substring(equals + 1, s.length()); 48 props.setProperty(key, value); 49 } 50 } 51 EnsmerManager.instance(props); 52 } 53 54 57 private Ensmer() { } 58 } 59 60 | Popular Tags |