Changeset 188
- Timestamp:
- 02/23/08 02:40:58 (11 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/jsmtpd/src/org/jsmtpd/config/ReadConfig.java
r183 r188 23 23 import java.io.FileInputStream; 24 24 import java.util.Properties; 25 import org.apache.commons.logging.Log; 26 import org.apache.commons.logging.LogFactory; 25 27 26 28 /** … … 31 33 public class ReadConfig extends Properties { 32 34 private static ReadConfig instance = null; 33 35 private static Log log = LogFactory.getLog(ReadConfig.class); 34 36 private ReadConfig() {} 35 37 … … 49 51 50 52 public int getIntegerProperty (String name) { 53 if (getProperty(name)==null) 54 log.error ("Property "+name+" is missing from jsmtpd.ini"); 51 55 return Integer.parseInt(getProperty(name)); 52 56 } 53 57 54 58 public boolean getBooleanProperty (String name) { 59 if (getProperty(name)==null) 60 log.error ("Property "+name+" is missing from jsmtpd.ini"); 55 61 return Boolean.parseBoolean(getProperty(name)); 56 62 }
