SHIVA.StartConfigure ( vs. r1.1)
Diffs

 <<O>>  Difference Topic StartConfigure (r1.1 - 06 Jan 2006 - Main.HengYuan)
Line: 1 to 1
Added:
>
>
META TOPICPARENT ShivaConfiguration
In shiva.Main class, there are two global class variables START_RC and GUI_RC which can be changed to point to different resource file locations before shiva.Main's main funciton is called. Thus, to have a completely different set of configurations w/o touching the SHIVA core, you can do the something like below:

/*
 *
 * $Id: StartConfigure.txt,v 1.1 2006/01/06 23:14:41 HengYuan Exp www $
 *
 */
package trogdor;

/**
 * @author Heng Yuan
 * @version $Revision: 1.1 $
 */
public class Main
{
   public static String STARTUP_RC = "trogdor/resources/start.xml";
   public static String GUI_RC = "trogdor/resources/shivagui.xml";

   public static void main (String[] args) throws Exception
   {
      shiva.Main.STARTUP_RC = STARTUP_RC;
      shiva.Main.GUI_RC = GUI_RC;
      shiva.Main.main (args);
   }
}

Topic: StartConfigure . { View | Diffs | r1.1 | More }

Revision -
Revision r1.1 - 06 Jan 2006 - 23:15 - Main.HengYuan