Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/Importer.java @ 766:aa9e3da95c31
Importer: Fix import of annotation type classification.
flys-backend/trunk@2163 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 19 Jun 2011 17:43:38 +0000 |
parents | 763c4137d6e1 |
children | f08fe480092c |
comparison
equal
deleted
inserted
replaced
765:763c4137d6e1 | 766:aa9e3da95c31 |
---|---|
88 | 88 |
89 public static AnnotationClassifier getAnnotationClassifier() { | 89 public static AnnotationClassifier getAnnotationClassifier() { |
90 String annotationTypes = System.getProperty(ANNOTATION_TYPES); | 90 String annotationTypes = System.getProperty(ANNOTATION_TYPES); |
91 | 91 |
92 if (annotationTypes == null) { | 92 if (annotationTypes == null) { |
93 log.info("no annotation types file configured."); | |
93 return null; | 94 return null; |
94 } | 95 } |
95 | 96 |
96 File file = new File(annotationTypes); | 97 File file = new File(annotationTypes); |
98 | |
99 log.info("use annotation types file '" + file + "'"); | |
97 | 100 |
98 if (!(file.isFile() && file.canRead())) { | 101 if (!(file.isFile() && file.canRead())) { |
99 log.warn("annotation type file '" + file + "' is not readable."); | 102 log.warn("annotation type file '" + file + "' is not readable."); |
100 return null; | 103 return null; |
101 } | 104 } |