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-94f89814c4dfmaster
parent
c2a6175de8
commit
13d832807b
|
|
@ -160,8 +160,13 @@ class ThemeValidationPanel extends GridPanel implements ThemeConstants {
|
||||||
Theme theme = m_model.getSelectedTheme(state);
|
Theme theme = m_model.getSelectedTheme(state);
|
||||||
|
|
||||||
// The call to resolve returns a url similar to this:
|
// The call to resolve returns a url similar to this:
|
||||||
// http://localhost:9008/resource/ccm-ldn-theme,ROOT/__ccm__/apps/theme/xsl/index.xsl
|
// http://localhost:9008/resource/ccm-ldn-theme,ROOT/__ccm__/apps/theme/xsl/index.xs
|
||||||
String base = "http://" + Web.getConfig().getHost().toString() + "/resource/ccm-ldn-theme/";
|
//
|
||||||
|
// 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 currentRoot = new File(Web.getServletContext().getRealPath("/"));
|
||||||
File devDir = new File(currentRoot, DEV_THEMES_BASE_DIR +
|
File devDir = new File(currentRoot, DEV_THEMES_BASE_DIR +
|
||||||
theme.getURL());
|
theme.getURL());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue