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());