[Dive4elements-commits] [PATCH 2 of 3] Add * in the first line of AT Exports

Wald Commits scm-commit at wald.intevation.org
Wed Jun 5 18:03:42 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1370448159 -7200
# Node ID 715e010d40defd9f4074343f1485460a7e51aa57
# Parent  a82a724356f0e41e00e5d33a25be8cfd2860a2aa
Add * in the first line of AT Exports.

    According to the "spec" this is requried. Desktop flys does not
    care though as it just ignores the first line.

diff -r a82a724356f0 -r 715e010d40de artifacts/src/main/java/org/dive4elements/river/exports/ATWriter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ATWriter.java	Wed Jun 05 14:44:36 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/ATWriter.java	Wed Jun 05 18:02:39 2013 +0200
@@ -130,7 +130,7 @@
         Date        date
     ) {
         DateFormat f = DateFormat.getDateInstance();
-        out.print(Resources.getMsg(
+        out.print("*" + Resources.getMsg(
             callMeta,
             I18N_AT_GAUGE_HEADER,
             I18N_AT_GAUGE_HEADER,
@@ -144,7 +144,7 @@
         String      river,
         double      km
     ) {
-        out.print(Resources.getMsg(
+        out.print("*" + Resources.getMsg(
             callMeta,
             I18N_AT_HEADER,
             I18N_AT_HEADER,
diff -r a82a724356f0 -r 715e010d40de artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixATWriter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixATWriter.java	Wed Jun 05 14:44:36 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixATWriter.java	Wed Jun 05 18:02:39 2013 +0200
@@ -156,7 +156,7 @@
         String      river,
         double      km
     ) {
-        out.println(Resources.format(
+        out.println("*" + Resources.format(
             meta,
             I18N_HEADER_KEY,
             I18N_HEADER_DEFAULT,


More information about the Dive4elements-commits mailing list