Skip to content
This repository has been archived by the owner on Apr 13, 2020. It is now read-only.

Commit

Permalink
Lack of mapcache/ dir causes tests to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
rob42 committed May 8, 2017
1 parent 2f33e78 commit f06629e
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -455,8 +455,13 @@ public void configure0() throws Exception {
}

private void reloadCharts() {
File mapDir = new File(Util.getConfigProperty(STATIC_DIR)+Util.getConfigProperty(MAP_DIR));
String staticDir = Util.getConfigProperty(STATIC_DIR);
if(!staticDir.endsWith("/")){
staticDir=staticDir+"/";
}
File mapDir = new File(staticDir+Util.getConfigProperty(MAP_DIR));
logger.debug("Reloading charts from: "+mapDir.getAbsolutePath());
if(mapDir==null || !mapDir.exists() || mapDir.listFiles()==null)return;
UploadProcessor processor = new UploadProcessor();
for(File chart:mapDir.listFiles()){
if(chart.isDirectory()){
Expand Down

0 comments on commit f06629e

Please sign in to comment.