Modified config system:
[mir.git] / source / mircoders / producer / ProducerContent.java
index 9651787..ceb8e7f 100755 (executable)
@@ -18,8 +18,14 @@ import mircoders.storage.*;
 public class ProducerContent extends Producer {
 
   public static void main(String argv[]){
-    Configuration.initConfig("config");
-    System.out.println(Configuration.getProperty("Producer.DocRoot"));
+    /**
+     * Why are we reloading the config here?
+     * Can someone please explain this?
+     * Hope I didn't break anything
+     * -mh. <heckmann@hbe.ca>
+     */
+    //Configuration.initConfig("config");
+    System.out.println(MirConfig.getProp("Producer.DocRoot"));
 
     try {
       new ProducerContent().handle(new PrintWriter(System.out), null, false,false);
@@ -43,12 +49,12 @@ public class ProducerContent extends Producer {
   public void handle(PrintWriter htmlout, EntityUsers user, boolean force, boolean sync, String id)
     throws StorageObjectException, ModuleException {
 
-    String contentTemplate = Configuration.getProperty("Producer.Content.Template");
-    int contentBatchsize = Integer.parseInt(Configuration.getProperty("Producer.Content.Batchsize"));
-    String extLinkName = Configuration.getProperty("Producer.ExtLinkName");
-    String intLinkName = Configuration.getProperty("Producer.IntLinkName");
-    String mailLinkName = Configuration.getProperty("Producer.MailLinkName");
-    String imageRoot = Configuration.getProperty("Producer.ImageRoot");
+    String contentTemplate = MirConfig.getProp("Producer.Content.Template");
+    int contentBatchsize = Integer.parseInt(MirConfig.getProp("Producer.Content.Batchsize"));
+    String extLinkName = MirConfig.getProp("Producer.ExtLinkName");
+    String intLinkName = MirConfig.getProp("Producer.IntLinkName");
+    String mailLinkName = MirConfig.getProp("Producer.MailLinkName");
+    String imageRoot = MirConfig.getProp("Producer.ImageRoot");
 
     long                sessionConnectTime = 0;
     long                startTime = (new java.util.Date()).getTime();