Update of /cvsroot/rails/18xx/rails/util
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv17929/rails/util
Modified Files:
Config.java
Log Message:
Fixed some bugs:
- 1830: free D&H token wasn't free
- 18EU: only one 8-train buyable
Also added Rails version and date in saved files and reportng in the log of same.
Bulld date included in BuildInfo, which is rewritten on each build via a new build.xml Ant script.
Index: Config.java
===================================================================
RCS file: /cvsroot/rails/18xx/rails/util/Config.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Config.java 4 Jun 2008 19:00:39 -0000 1.7
--- Config.java 5 Nov 2009 22:50:38 -0000 1.8
***************
*** 2,9 ****
package rails.util;
! import java.util.*;
! import java.io.*;
! import org.apache.log4j.*;
/**
--- 2,9 ----
package rails.util;
! import java.io.FileNotFoundException;
! import java.util.Properties;
! import org.apache.log4j.Logger;
/**
***************
*** 11,15 ****
* a property object from a property file, to retrieve a particular value from
* the property file etc.
! *
* @author Ramiah Bala, rewritten by Erik Vos
* @version 1.0
--- 11,15 ----
* a property object from a property file, to retrieve a particular value from
* the property file etc.
! *
* @author Ramiah Bala, rewritten by Erik Vos
* @version 1.0
***************
*** 53,57 ****
/**
* This method loads a property file.
! *
* @param filename - file key name as a String.
* @param required - if TRUE, an exception will be logged if the file does
--- 53,57 ----
/**
* This method loads a property file.
! *
* @param filename - file key name as a String.
* @param required - if TRUE, an exception will be logged if the file does
***************
*** 73,76 ****
--- 73,77 ----
System.err.println(e + " whilst loading properties file "
+ filename);
+ e.printStackTrace(System.err);
}
}
|