move the new versioning thing down so it actually works
[mir.git] / source / mir / misc / MirConfig.java
index c628d48..3c8bfb5 100755 (executable)
@@ -74,28 +74,30 @@ public class MirConfig extends Configuration {
    * @param name, The name of the servlet (usually "Mir")
    * @param confName, the name of the config file to load.
    */
-  public static synchronized void initConfig(ServletContext ctx, String uri,
+  public static synchronized void initConfig(ServletContext ctx, String ctxPath,
                                             String name, String confName) {
     initConfResource(confName);
     configHash = new HashMap();
 
+
     configHash.put("Home", ctx.getRealPath("/"));
     configHash.put("ServletContext", ctx);
-    configHash.put("RootUri", uri);
+    configHash.put("RootUri", ctxPath);
 
     Enumeration resKeys = getResourceKeys();
     while(resKeys.hasMoreElements()) {
       String keyNm = (String)resKeys.nextElement();
       configHash.put(keyNm, getProperty(keyNm));
     }
+    configHash.put("Mir.Version", "$Name:  $");
   }
-  /**
-   * Returns the property asked for by pulling it out a HashMap
-   * @param a String containing the property name (key)
-   * @return a String containing the prop. value
-   */
-  public static void setServletName(String servletName) {
-    configHash.put("ServletName",servletName);
+
+  public static void setAdminServletName(String servletName) {
+    configHash.put("AdminServletName",servletName);
+  }
+
+  public static void setOpenServletName(String servletName) {
+    configHash.put("OpenServletName",servletName);
   }
 
   /**