Event definition loader

Implemented the ImportEvents command line tool, which allows event
definitions to be imported. In all cases the tool will try to import all
definitions; if an error occurs, the process continues but the
transaction is rolled back. It skips existing definitions rather than
taking the risk of doing something inappropriate (e.g. deletion of
existing events).
This commit is contained in:
Emmanuel BENOîT 2012-06-30 14:52:55 +02:00
parent c8f19a4c06
commit 75c5245764
15 changed files with 1334 additions and 0 deletions
legacyworlds/doc

View file

@ -39,6 +39,8 @@ from the root of the server's distribution:
java -jar legacyworlds-server-main-1.0.0-0.jar \
--run-tool ImportText data/i18n-text.xml
java -jar legacyworlds-server-main-1.0.0-0.jar \
--run-tool ImportEvents data/event-definitions.xml
java -jar legacyworlds-server-main-1.0.0-0.jar \
--run-tool ImportTechGraph data/tech-graph.xml
java -jar legacyworlds-server-main-1.0.0-0.jar \