diff flys-backend/src/main/java/de/intevation/flys/importer/StaFileParser.java @ 499:cce054f27dac

Importer: Only accept main value types 'Q', 'W', 'D' and 'T' by default. flys-backend/trunk@1853 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 08 May 2011 21:34:43 +0000
parents 8d3533a03e10
children
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/StaFileParser.java	Sun May 08 17:55:49 2011 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/StaFileParser.java	Sun May 08 21:34:43 2011 +0000
@@ -22,8 +22,12 @@
 
     public static final String ENCODING = "ISO-8859-1";
 
+    public static final String TYPES =
+        System.getProperty("flys.backend.main.value.types", "QWTD");
+
     public static final Pattern QWTD_ =
-        Pattern.compile("\\s*([^\\s]+)\\s+([^\\s]+)\\s+([QWTD-]).*");
+        Pattern.compile("\\s*([^\\s]+)\\s+([^\\s]+)\\s+([" +
+            Pattern.quote(TYPES) + "]).*");
 
     public StaFileParser() {
     }

http://dive4elements.wald.intevation.org