Skip to content
Snippets Groups Projects
Commit e832d0ec authored by gnaegi's avatar gnaegi
Browse files

OO-278 fix wrong default value for debug mode and check if source path really...

OO-278 fix wrong default value for debug mode and check if source path really exists when setting to prevent followup errors.
parent d4a300c2
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ instance.id=myopenolat
########################################################################
# for developers set to true - velocity pages are NOT cached
olat.debug=true
olat.debug=false
# for developers set to false - i18n files are not cached
localization.cache=false
# path to the source code. Use this together with olat.debug=true in a
......
......@@ -230,11 +230,23 @@ public class WebappHelper implements Initializable, Destroyable, ServletContextA
}
public void setFullPathToSrc(String fullPathToSrc) {
WebappHelper.fullPathToSrc = fullPathToSrc;
File path = new File(fullPathToSrc);
if (path.exists()) {
WebappHelper.fullPathToSrc = fullPathToSrc;
} else {
log.debug("Invalid fullPathToSrc configuration, reset to empty path");
WebappHelper.fullPathToSrc = "";
}
}
public void setFullPathToWebappSrc(String fullPathToWebappSrc) {
WebappHelper.fullPathToWebappSrc = fullPathToWebappSrc;
File path = new File(fullPathToWebappSrc);
if (path.exists()) {
WebappHelper.fullPathToWebappSrc = fullPathToWebappSrc;
} else {
log.debug("Invalid fullPathToWebappSrc configuration, reset to empty path");
WebappHelper.fullPathToWebappSrc = "";
}
}
/**
......
......@@ -258,8 +258,9 @@ layout.coursetemplates.blacklist=
# test user generation
user.generateTestUsers=false
# debug mode for developers. If olat.debug is set to true you must also set project.build.home.directory to your source code
olat.debug.comment=for developers: Set to true to enable visual debugging by the red/green bug icon on the upper left corner of olat
olat.debug=true
olat.debug=false
# cache localization files (unless in development mode)
localization.cache=true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment