1 6 7 package com.sun.enterprise.config.backup.utils; 8 9 import com.sun.enterprise.config.backup.utils.LoggerHelper; 10 import com.sun.enterprise.config.backup.DefaultConstants; 11 12 16 public class SystemPropsHelper 17 { 18 public SystemPropsHelper() 19 { 20 } 21 22 public static String getProperty(String what) 23 { 24 String value = System.getProperty(what); 25 26 if(DefaultConstants.debug) 27 { 28 LoggerHelper.fine("READ ENV: " + what + "=" + value); 30 } 32 return value; 33 } 34 35 public static String setProperty(String what, String value) 36 { 37 System.setProperty(what, value); 38 39 if(DefaultConstants.debug) 40 { 41 LoggerHelper.fine("WRITE ENV: " + what + "=" + value); 43 } 45 return value; 46 } 47 } 48 | Popular Tags |