Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/Config.java @ 2804:68d1661a57cf
Added a new config option to specify a INFO.gew file by system property.
flys-backend/trunk@4182 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 29 Mar 2012 07:24:15 +0000 |
parents | 268f8da412e3 |
children | 33f40b23edd8 |
comparison
equal
deleted
inserted
replaced
2803:cdc084071c14 | 2804:68d1661a57cf |
---|---|
2 | 2 |
3 public class Config | 3 public class Config |
4 { | 4 { |
5 public static final String DRY_RUN = | 5 public static final String DRY_RUN = |
6 "flys.backend.importer.dry.run"; | 6 "flys.backend.importer.dry.run"; |
7 | |
8 public static final String INFO_GEW_FILE = | |
9 "flys.backend.importer.infogew.file"; | |
7 | 10 |
8 public static final String ANNOTATION_TYPES = | 11 public static final String ANNOTATION_TYPES = |
9 "flys.backend.importer.annotation.types"; | 12 "flys.backend.importer.annotation.types"; |
10 | 13 |
11 public static final String SKIP_GAUGES = | 14 public static final String SKIP_GAUGES = |
43 private Config () { | 46 private Config () { |
44 } | 47 } |
45 | 48 |
46 public boolean dryRun() { | 49 public boolean dryRun() { |
47 return Boolean.getBoolean(DRY_RUN); | 50 return Boolean.getBoolean(DRY_RUN); |
51 } | |
52 | |
53 public String getInfoGewFile() { | |
54 return System.getProperty(INFO_GEW_FILE); | |
48 } | 55 } |
49 | 56 |
50 public String getAnnotationTypes() { | 57 public String getAnnotationTypes() { |
51 return System.getProperty(ANNOTATION_TYPES); | 58 return System.getProperty(ANNOTATION_TYPES); |
52 } | 59 } |