From 4bf36369e1a1376212ec84baf7976b1e9089218a Mon Sep 17 00:00:00 2001
From: Luc Maisonobe <luc@orekit.org>
Date: Tue, 10 Feb 2015 11:10:57 +0100
Subject: [PATCH] Moved dump replayer to main library.

---
 .../org/orekit/rugged/errors/RuggedMessages.java  |  7 ++++++-
 .../org/orekit/rugged/RuggedMessages_de.utf8      | 15 +++++++++++++++
 .../org/orekit/rugged/RuggedMessages_en.utf8      | 15 +++++++++++++++
 .../org/orekit/rugged/RuggedMessages_es.utf8      | 15 +++++++++++++++
 .../org/orekit/rugged/RuggedMessages_fr.utf8      | 15 +++++++++++++++
 .../org/orekit/rugged/RuggedMessages_gl.utf8      | 15 +++++++++++++++
 .../org/orekit/rugged/RuggedMessages_it.utf8      | 15 +++++++++++++++
 .../org/orekit/rugged/RuggedMessages_no.utf8      | 15 +++++++++++++++
 .../org/orekit/rugged/RuggedMessages_ro.utf8      | 15 +++++++++++++++
 .../orekit/rugged/errors/RuggedMessagesTest.java  |  2 +-
 10 files changed, 127 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/orekit/rugged/errors/RuggedMessages.java b/src/main/java/org/orekit/rugged/errors/RuggedMessages.java
index d4fed0a1..09365ec5 100644
--- a/src/main/java/org/orekit/rugged/errors/RuggedMessages.java
+++ b/src/main/java/org/orekit/rugged/errors/RuggedMessages.java
@@ -68,7 +68,12 @@ public enum RuggedMessages implements Localizable {
     ESTIMATED_PARAMETERS_NUMBER_MISMATCH("number of estimated parameters mismatch, expected {0} got {1}"),
     DEBUG_DUMP_ALREADY_ACTIVE("debug dump is already active for this thread"),
     DEBUG_DUMP_ACTIVATION_ERROR("unable to active debug dump with file {0}: {1}"),
-    DEBUG_DUMP_NOT_ACTIVE("debug dump is not active for this thread");
+    DEBUG_DUMP_NOT_ACTIVE("debug dump is not active for this thread"),
+    CANNOT_PARSE_LINE("cannot parse line {0}, file {1}: {2}"),
+    LIGHT_TIME_CORRECTION_REDEFINED("light time correction redefined, line {0}, file {1}: {2}"),
+    ABERRATION_OF_LIGHT_CORRECTION_REDEFINED("aberration of light correction redefined, line {0}, file {1}: {2}"),
+    TILE_ALREADY_DEFINED("tile {0} already defined, line {1}, file {2}: {3}"),
+    UNKNOWN_TILE("unknown tile {0}, line {1}, file {2}: {3}");
 
     // CHECKSTYLE: resume JavadocVariable check
 
diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_de.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_de.utf8
index 1b36f2d4..87c030ec 100644
--- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_de.utf8
+++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_de.utf8
@@ -54,3 +54,18 @@ DEBUG_DUMP_ACTIVATION_ERROR = <MISSING TRANSLATION>
 
 # debug dump is not active for this thread
 DEBUG_DUMP_NOT_ACTIVE = <MISSING TRANSLATION>
+
+# cannot parse line {0}, file {1}: {2}
+CANNOT_PARSE_LINE = <MISSING TRANSLATION>
+
+# light time correction redefined, line {0}, file {1}: {2}
+LIGHT_TIME_CORRECTION_REDEFINED = <MISSING TRANSLATION>
+
+# aberration of light correction redefined, line {0}, file {1}: {2}
+ABERRATION_OF_LIGHT_CORRECTION_REDEFINED = <MISSING TRANSLATION>
+
+# tile {0} already defined, line {1}, file {2}: {3}
+TILE_ALREADY_DEFINED = <MISSING TRANSLATION>
+
+# unknown tile {0}, line {1}, file {2}: {3}
+UNKNOWN_TILE = <MISSING TRANSLATION>
diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_en.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_en.utf8
index 6489c7d3..ea4bfbb8 100644
--- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_en.utf8
+++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_en.utf8
@@ -54,3 +54,18 @@ DEBUG_DUMP_ACTIVATION_ERROR = unable to active debug dump with file {0}: {1}
 
 # debug dump is not active for this thread
 DEBUG_DUMP_NOT_ACTIVE = debug dump is not active for this thread
+
+# cannot parse line {0}, file {1}: {2}
+CANNOT_PARSE_LINE = cannot parse line {0}, file {1}: {2}
+
+# light time correction redefined, line {0}, file {1}: {2}
+LIGHT_TIME_CORRECTION_REDEFINED = light time correction redefined, line {0}, file {1}: {2}
+
+# aberration of light correction redefined, line {0}, file {1}: {2}
+ABERRATION_OF_LIGHT_CORRECTION_REDEFINED = aberration of light correction redefined, line {0}, file {1}: {2}
+
+# tile {0} already defined, line {1}, file {2}: {3}
+TILE_ALREADY_DEFINED = tile {0} already defined, line {1}, file {2}: {3}
+
+# unknown tile {0}, line {1}, file {2}: {3}
+UNKNOWN_TILE = unknown tile {0}, line {1}, file {2}: {3}
diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_es.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_es.utf8
index e2b1c469..a0cd7fc6 100644
--- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_es.utf8
+++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_es.utf8
@@ -54,3 +54,18 @@ DEBUG_DUMP_ACTIVATION_ERROR = <MISSING TRANSLATION>
 
 # debug dump is not active for this thread
 DEBUG_DUMP_NOT_ACTIVE = <MISSING TRANSLATION>
+
+# cannot parse line {0}, file {1}: {2}
+CANNOT_PARSE_LINE = <MISSING TRANSLATION>
+
+# light time correction redefined, line {0}, file {1}: {2}
+LIGHT_TIME_CORRECTION_REDEFINED = <MISSING TRANSLATION>
+
+# aberration of light correction redefined, line {0}, file {1}: {2}
+ABERRATION_OF_LIGHT_CORRECTION_REDEFINED = <MISSING TRANSLATION>
+
+# tile {0} already defined, line {1}, file {2}: {3}
+TILE_ALREADY_DEFINED = <MISSING TRANSLATION>
+
+# unknown tile {0}, line {1}, file {2}: {3}
+UNKNOWN_TILE = <MISSING TRANSLATION>
diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_fr.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_fr.utf8
index 04d17033..61b1ebce 100644
--- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_fr.utf8
+++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_fr.utf8
@@ -54,3 +54,18 @@ DEBUG_DUMP_ACTIVATION_ERROR = impossible d''activer la capture de débogage avec
 
 # debug dump is not active for this thread
 DEBUG_DUMP_NOT_ACTIVE = capture de débogage inactive pour ce fil d''exécution
+
+# cannot parse line {0}, file {1}: {2}
+CANNOT_PARSE_LINE = impossible d''analyser la ligne {0} du fichier {1}: {2}
+
+# light time correction redefined, line {0}, file {1}: {2}
+LIGHT_TIME_CORRECTION_REDEFINED = correction de la durée lumière redéfinie ligne {0} du fichier {1}: {2}
+
+# aberration of light correction redefined, line {0}, file {1}: {2}
+ABERRATION_OF_LIGHT_CORRECTION_REDEFINED = correction de l''aberration de la lumière redéfinie ligne {0} du fichier {1}: {2}
+
+# tile {0} already defined, line {1}, file {2}: {3}
+TILE_ALREADY_DEFINED = tuile {0} déjà définie ligne {1} du fichier {2}: {3}
+
+# unknown tile {0}, line {1}, file {2}: {3}
+UNKNOWN_TILE = tuile {0} inconnue ligne {1} du fichier {2}: {3}
diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_gl.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_gl.utf8
index eeafc69d..d49ae095 100644
--- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_gl.utf8
+++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_gl.utf8
@@ -54,3 +54,18 @@ DEBUG_DUMP_ACTIVATION_ERROR = <MISSING TRANSLATION>
 
 # debug dump is not active for this thread
 DEBUG_DUMP_NOT_ACTIVE = <MISSING TRANSLATION>
+
+# cannot parse line {0}, file {1}: {2}
+CANNOT_PARSE_LINE = <MISSING TRANSLATION>
+
+# light time correction redefined, line {0}, file {1}: {2}
+LIGHT_TIME_CORRECTION_REDEFINED = <MISSING TRANSLATION>
+
+# aberration of light correction redefined, line {0}, file {1}: {2}
+ABERRATION_OF_LIGHT_CORRECTION_REDEFINED = <MISSING TRANSLATION>
+
+# tile {0} already defined, line {1}, file {2}: {3}
+TILE_ALREADY_DEFINED = <MISSING TRANSLATION>
+
+# unknown tile {0}, line {1}, file {2}: {3}
+UNKNOWN_TILE = <MISSING TRANSLATION>
diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_it.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_it.utf8
index f7aae438..24d8672c 100644
--- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_it.utf8
+++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_it.utf8
@@ -54,3 +54,18 @@ DEBUG_DUMP_ACTIVATION_ERROR = <MISSING TRANSLATION>
 
 # debug dump is not active for this thread
 DEBUG_DUMP_NOT_ACTIVE = <MISSING TRANSLATION>
+
+# cannot parse line {0}, file {1}: {2}
+CANNOT_PARSE_LINE = <MISSING TRANSLATION>
+
+# light time correction redefined, line {0}, file {1}: {2}
+LIGHT_TIME_CORRECTION_REDEFINED = <MISSING TRANSLATION>
+
+# aberration of light correction redefined, line {0}, file {1}: {2}
+ABERRATION_OF_LIGHT_CORRECTION_REDEFINED = <MISSING TRANSLATION>
+
+# tile {0} already defined, line {1}, file {2}: {3}
+TILE_ALREADY_DEFINED = <MISSING TRANSLATION>
+
+# unknown tile {0}, line {1}, file {2}: {3}
+UNKNOWN_TILE = <MISSING TRANSLATION>
diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_no.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_no.utf8
index 1950b611..63bef9ed 100644
--- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_no.utf8
+++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_no.utf8
@@ -54,3 +54,18 @@ DEBUG_DUMP_ACTIVATION_ERROR = <MISSING TRANSLATION>
 
 # debug dump is not active for this thread
 DEBUG_DUMP_NOT_ACTIVE = <MISSING TRANSLATION>
+
+# cannot parse line {0}, file {1}: {2}
+CANNOT_PARSE_LINE = <MISSING TRANSLATION>
+
+# light time correction redefined, line {0}, file {1}: {2}
+LIGHT_TIME_CORRECTION_REDEFINED = <MISSING TRANSLATION>
+
+# aberration of light correction redefined, line {0}, file {1}: {2}
+ABERRATION_OF_LIGHT_CORRECTION_REDEFINED = <MISSING TRANSLATION>
+
+# tile {0} already defined, line {1}, file {2}: {3}
+TILE_ALREADY_DEFINED = <MISSING TRANSLATION>
+
+# unknown tile {0}, line {1}, file {2}: {3}
+UNKNOWN_TILE = <MISSING TRANSLATION>
diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_ro.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_ro.utf8
index b1159b05..a51106bd 100644
--- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_ro.utf8
+++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_ro.utf8
@@ -54,3 +54,18 @@ DEBUG_DUMP_ACTIVATION_ERROR = <MISSING TRANSLATION>
 
 # debug dump is not active for this thread
 DEBUG_DUMP_NOT_ACTIVE = <MISSING TRANSLATION>
+
+# cannot parse line {0}, file {1}: {2}
+CANNOT_PARSE_LINE = <MISSING TRANSLATION>
+
+# light time correction redefined, line {0}, file {1}: {2}
+LIGHT_TIME_CORRECTION_REDEFINED = <MISSING TRANSLATION>
+
+# aberration of light correction redefined, line {0}, file {1}: {2}
+ABERRATION_OF_LIGHT_CORRECTION_REDEFINED = <MISSING TRANSLATION>
+
+# tile {0} already defined, line {1}, file {2}: {3}
+TILE_ALREADY_DEFINED = <MISSING TRANSLATION>
+
+# unknown tile {0}, line {1}, file {2}: {3}
+UNKNOWN_TILE = <MISSING TRANSLATION>
diff --git a/src/test/java/org/orekit/rugged/errors/RuggedMessagesTest.java b/src/test/java/org/orekit/rugged/errors/RuggedMessagesTest.java
index 353e5793..7002ad8e 100644
--- a/src/test/java/org/orekit/rugged/errors/RuggedMessagesTest.java
+++ b/src/test/java/org/orekit/rugged/errors/RuggedMessagesTest.java
@@ -30,7 +30,7 @@ public class RuggedMessagesTest {
 
     @Test
     public void testMessageNumber() {
-        Assert.assertEquals(19, RuggedMessages.values().length);
+        Assert.assertEquals(24, RuggedMessages.values().length);
     }
 
     @Test
-- 
GitLab