Command line tools
* Added base classes for all importable data. These new classes should be used for all future loaders; all existing loaders that are modified should be updated. * I18N loader rewritten to make use of the new base classes. External strings are now read using the XML data file's path as the base directory. * Updated all external I18N definitions and moved the existing files around in an attempt to make the data directory somewhat more livable. * Added dependency management entry for the server's main package to the root project, updated server distribution package accordingly. Added dependency on the server's main package to the server's testing package.
This commit is contained in:
parent
be3106c463
commit
631f49fb86
57 changed files with 2295 additions and 200 deletions
legacyworlds-server-tests/TestFiles
|
@ -0,0 +1 @@
|
|||
This is a test.
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<lw-text-data>
|
||||
|
||||
<does-not-exist />
|
||||
|
||||
</lw-text-data>
|
12
legacyworlds-server-tests/TestFiles/i18n-loader/bad-data.xml
Normal file
12
legacyworlds-server-tests/TestFiles/i18n-loader/bad-data.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<lw-text-data xmlns="http://www.deepclone.com/lw/b6/m1/i18n-text"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.deepclone.com/lw/b6/m1/i18n-text ../../../legacyworlds-server-main/data/i18n-text.xsd">
|
||||
|
||||
<language name="test" id="test">
|
||||
<inline-string id="test">
|
||||
<value />
|
||||
</inline-string>
|
||||
</language>
|
||||
|
||||
</lw-text-data>
|
|
@ -0,0 +1,2 @@
|
|||
This is not an XML file, obviously.
|
||||
We'll make that even more confusing: <<<<<< & >>!!!
|
12
legacyworlds-server-tests/TestFiles/i18n-loader/good.xml
Normal file
12
legacyworlds-server-tests/TestFiles/i18n-loader/good.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<lw-text-data xmlns="http://www.deepclone.com/lw/b6/m1/i18n-text"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.deepclone.com/lw/b6/m1/i18n-text ../../../legacyworlds-server-main/data/i18n-text.xsd">
|
||||
|
||||
<language name="test" id="test">
|
||||
|
||||
<from-file id="test" source="test.txt" />
|
||||
|
||||
</language>
|
||||
|
||||
</lw-text-data>
|
1
legacyworlds-server-tests/TestFiles/i18n-loader/test.txt
Normal file
1
legacyworlds-server-tests/TestFiles/i18n-loader/test.txt
Normal file
|
@ -0,0 +1 @@
|
|||
test
|
Reference in a new issue