- public static String templateDir;
- private static FileTemplateCache templateCache;
- private static Logfile theLog;
- private static String docRoot;
- private static String actionRoot;
- private static String productionHost;
- private static String audioHost;
- private static String videoHost;
- private static String imageHost;
- private static String openAction;
- protected static String producerDocRoot = Configuration.getProperty("Producer.DocRoot");
- protected static String producerStorageRoot = Configuration.getProperty("Producer.StorageRoot");
-
-
- //
- // Initialisierung
-
- static {
- templateDir = Configuration.getProperty("Home") + Configuration.getProperty("HTMLTemplateProcessor.Dir");
- templateCache = new FileTemplateCache(templateDir);
- templateCache.setLoadingPolicy(templateCache.LOAD_ON_DEMAND);
- //templateCache.startAutoUpdate();
- theLog = Logfile.getInstance(Configuration.getProperty("Home") + Configuration.getProperty("HTMLTemplateProcessor.Logfile"));
- docRoot = Configuration.getProperty("HTMLTemplateProcessor.DocRoot");
- actionRoot = Configuration.getProperty("HTMLTemplateProcessor.ActionRoot");
- openAction = Configuration.getProperty("Producer.OpenAction");
- productionHost = Configuration.getProperty("Producer.ProductionHost");
- videoHost = Configuration.getProperty("Producer.VideoHost");
- audioHost = Configuration.getProperty("Producer.AudioHost");
- imageHost = Configuration.getProperty("Producer.Image.Host");
- producerDocRoot = Configuration.getProperty("Producer.DocRoot");
- producerStorageRoot = Configuration.getProperty("Producer.StorageRoot");
-
-
- }
+ public static String templateDir;
+ private static FileTemplateCache templateCache;
+ private static Logfile theLog;
+ private static String docRoot;
+ private static String actionRoot;
+ private static String productionHost;
+ private static String audioHost;
+ private static String videoHost;
+ private static String imageHost;
+ private static String imagePath;
+ private static String openAction;
+ private static String defEncoding;
+ private static String generateFO;
+ private static String generatePDF;
+ protected static String producerDocRoot =
+ MirConfig.getProp("Producer.DocRoot");
+ protected static String producerStorageRoot =
+ MirConfig.getProp("Producer.StorageRoot");
+
+ //
+ // init
+
+ static {
+ /** @todo either in the above block or here :) //rk */
+ templateDir = MirConfig.getPropWithHome("HTMLTemplateProcessor.Dir");
+ templateCache = new FileTemplateCache(templateDir);
+ templateCache.setLoadingPolicy(templateCache.LOAD_ON_DEMAND);
+ // gone in freemarker 1.7.1
+ // templateCache.startAutoUpdate();
+ theLog = Logfile.getInstance(MirConfig.getPropWithHome("HTMLTemplateProcessor.Logfile"));
+ docRoot = MirConfig.getProp("RootUri");
+ //the quick hack is back in effect as it was more broken than ever before
+ // -mh
+ // sorry: nadir back in town, i have to debug the mirbase.jar in the
+ // nadir evironment. from my point of coding, this needs an urgent
+ // fixxx.
+ // yeah, from my point too - tob.
+ //actionRoot = docRoot + "/servlet/" + MirConfig.getProp("ServletName");
+ //actionRoot = docRoot + "/servlet/NadirAktuell";
+
+ actionRoot = docRoot + "/servlet/Mir";
+
+ defEncoding = MirConfig.getProp("Mir.DefaultEncoding");
+ openAction = MirConfig.getProp("Producer.OpenAction");
+ productionHost = MirConfig.getProp("Producer.ProductionHost");
+ videoHost = MirConfig.getProp("Producer.VideoHost");
+ audioHost = MirConfig.getProp("Producer.AudioHost");
+ imageHost = MirConfig.getProp("Producer.Image.Host");
+ imagePath = MirConfig.getProp("Producer.Image.Path");
+ producerDocRoot = MirConfig.getProp("Producer.DocRoot");
+ producerStorageRoot = MirConfig.getProp("Producer.StorageRoot");
+ generateFO = MirConfig.getProp("GenerateFO");
+ generatePDF = MirConfig.getProp("GeneratePDF");
+ }