Hi all, attached is a patch the should set program return code to 1 in case of severe errors.
It also changes the handling of so called MapFailedExceptions like
"There is not enough room in a single garmin map..."
or
"Overflow of the NET1. The tile ..."
These messages are now printed as severe messages via the logging system
(showing the input file):
Severe (MapFailedException): \ld_sp\63240003.o5m: (thrown in
BufferedImgFileWriter.ensureSize()) There is not enough room in a single garmin
map for all the input data. The .osm file should be split into smaller pieces
first.
The stdout contains two new messages:
Number of MapFailedExceptions: 3
Number of ExitExceptions: 0
If any of the two shows a non-zero value, the program exits with return code 1.
@WanMil, Steve: Please review.
In Main.java I use "synchronized" to make sure that concurrent updates are
handled.
The System.exit() method is only used if the program is not called from another
java program.
The code In MapFailedException.log() tries to determine the code that caused
the Exception.
I hope this works in all environments?
Gerd
rc-and-logging-v1.patch
Description: Binary data
_______________________________________________ mkgmap-dev mailing list [email protected] http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
