From 13d832807babc0a7a9ed044fd53fdc35bd1e1293 Mon Sep 17 00:00:00 2001 From: pb Date: Sat, 20 Jun 2009 15:27:17 +0000 Subject: [PATCH] Zwischenloesung: ccm-ldn-theme, ersetzen des fest kodierten alten Pfad ccm-ldn-theme durch neuen ROOT. Muss dringend dynamisiert werden. git-svn-id: https://svn.libreccm.org/ccm/trunk@200 8810af33-2d31-482b-a856-94f89814c4df --- .../london/theme/ui/ThemeValidationPanel.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ccm-ldn-theme/src/com/arsdigita/london/theme/ui/ThemeValidationPanel.java b/ccm-ldn-theme/src/com/arsdigita/london/theme/ui/ThemeValidationPanel.java index b0a72113c..151ea92c2 100755 --- a/ccm-ldn-theme/src/com/arsdigita/london/theme/ui/ThemeValidationPanel.java +++ b/ccm-ldn-theme/src/com/arsdigita/london/theme/ui/ThemeValidationPanel.java @@ -159,9 +159,14 @@ class ThemeValidationPanel extends GridPanel implements ThemeConstants { // any error messages that are found Theme theme = m_model.getSelectedTheme(state); - //The call to resolve returns a url similar to this: - // http://localhost:9008/resource/ccm-ldn-theme,ROOT/__ccm__/apps/theme/xsl/index.xsl - String base = "http://" + Web.getConfig().getHost().toString() + "/resource/ccm-ldn-theme/"; + // The call to resolve returns a url similar to this: + // http://localhost:9008/resource/ccm-ldn-theme,ROOT/__ccm__/apps/theme/xsl/index.xs + // + // TODO: This is VERY UGLY! Bad style to code a path into source code! + // String base = "http://" + Web.getConfig().getHost().toString() + + // "/resource/ccm-ldn-theme/"; + String base = "http://" + Web.getConfig().getHost().toString() + + "/resource/ROOT/"; File currentRoot = new File(Web.getServletContext().getRealPath("/")); File devDir = new File(currentRoot, DEV_THEMES_BASE_DIR + theme.getURL());