ruper2/src/java/core/org/krysalis/ruper/config RuperConfig.java,1.2,1.3

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/config
In directory sc8-pr-cvs1:/tmp/cvs-serv30114/src/java/core/org/krysalis/ruper/config

Modified Files:
	RuperConfig.java 
Log Message:
simple ruper.xml working

Index: RuperConfig.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/config/RuperConfig.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** RuperConfig.java	9 Sep 2003 21:49:06 -0000	1.2
--- RuperConfig.java	10 Sep 2003 16:09:39 -0000	1.3
***************
*** 17,25 ****
   * @author anou_mana
   */
! public class RuperConfig {
  	private static boolean l_configured = false;
  
! 	public static void configure(String configFileName) {
! 		try {
  			File configFile = new File(configFileName);
  
--- 17,28 ----
   * @author anou_mana
   */
! public class RuperConfig
! {
  	private static boolean l_configured = false;
  
! 	public static void configure(String configFileName)
! 	{
! 		try
! 		{
  			File configFile = new File(configFileName);
  
***************
*** 29,47 ****
  			XMLContext xmlContext = parser.parse(configFile);
  		}
! 		catch (Exception exp) {
  			Logger.getLog().error(Messages.getString("CONFIG_ERROR"), exp);
  		}
  	}
  
! 	public static void configure() {
  		if (!l_configured)
  		{
  			configure(RuperConstants.DEFAULT_CONFIG_XML);
! 			
  			l_configured = true;
  		}
  	}
  
! 	public static void main(String[] args) {
  
  		RuperConfig.configure();
--- 32,53 ----
  			XMLContext xmlContext = parser.parse(configFile);
  		}
! 		catch (Exception exp)
! 		{
  			Logger.getLog().error(Messages.getString("CONFIG_ERROR"), exp);
  		}
  	}
  
! 	public static void configure()
! 	{
  		if (!l_configured)
  		{
  			configure(RuperConstants.DEFAULT_CONFIG_XML);
! 
  			l_configured = true;
  		}
  	}
  
! 	public static void main(String[] args) throws Exception
! 	{
  
  		RuperConfig.configure();




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.