[PATCH 1 of 2] PorosityParser: Strip file extension for description
Wald Commits
scm-commit at wald.intevation.org
Fri May 16 13:18:37 CEST 2014
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1400238892 -7200
# Node ID a575eaae78997c19720578cea55c993853d05b95
# Parent 22acd6938ef07f35698a5cc1203720ad313f58c1
PorosityParser: Strip file extension for description.
diff -r 22acd6938ef0 -r a575eaae7899 backend/src/main/java/org/dive4elements/river/importer/parsers/PorosityParser.java
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/PorosityParser.java Fri May 16 12:26:11 2014 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/PorosityParser.java Fri May 16 13:14:52 2014 +0200
@@ -56,7 +56,7 @@
@Override
public void parse(File file) throws IOException {
- currentDescription = file.getName();
+ currentDescription = file.getName().replaceAll("\\.csv", "");
super.parse(file);
}
More information about the Dive4Elements-commits
mailing list