comparison artifacts/src/main/java/org/dive4elements/river/artifacts/context/RiverContextFactory.java @ 8087:2fcbcc9bb59a

Do not try to load empty files. Aritfacts can be directly defined in the conf.xml nowadays so an xlink is no longer required to exist.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 11 Aug 2014 18:33:50 +0200
parents 7ede7904c8a5
children c27c04030a8d
comparison
equal deleted inserted replaced
8086:7ede7904c8a5 8087:2fcbcc9bb59a
259 for (int i = 0; i < count; i++) { 259 for (int i = 0; i < count; i++) {
260 Element tmp = (Element) artifacts.item(i); 260 Element tmp = (Element) artifacts.item(i);
261 261
262 String xlink = tmp.getAttribute(XPATH_XLINK); 262 String xlink = tmp.getAttribute(XPATH_XLINK);
263 xlink = Config.replaceConfigDir(xlink); 263 xlink = Config.replaceConfigDir(xlink);
264 if (xlink.isEmpty()) {
265 continue;
266 }
264 267
265 File file = new File(xlink); 268 File file = new File(xlink);
266 if (!file.isFile() || !file.canRead()) { 269 if (!file.isFile() || !file.canRead()) {
267 logger.warn("Artifact configuration '" + file + "' not found."); 270 logger.warn("Artifact configuration '" + file + "' not found.");
268 continue; 271 continue;

http://dive4elements.wald.intevation.org