XINA Import
Overview
The XINA Import application is a utility for importing XINA API actions as JSON files. This application is distributed as a Java jar file and requires Java 11 or greater to run.
Download
log4j2.xml (log configuration file)
Usage
java -Dlog4j2.Dlog4j.configurationFile="path to log4j2.xml" \
-jar "path to xina_import.jar" \
[additional arguments...]
Argument | Info | Default |
---|---|---|
-host <hostname> |
the XINA Tunnel host | "localhost" |
-post <port> |
the XINA Tunnel port | 41740 |
-movejson <path> |
directory to move JSON files to after import | none (files are not moved) |
-movefile <path> |
directory to move other files to after import | none (files are not moved) |
-deljson |
if set, permanently delete JSON files after import | false |
-delfile |
if set, permanently delete other files after import | false |
-dir <path> |
path to directory containing files to import | |
-watch <path> |
path to directory to watch for files to import | |
-recursive |
if true in dir or watch mode, searches directory recursively for JSON files |
false |
XINA Import has three modes of operation:
File List
JSON files can be listed explicitly. They will be imported in the specified order.
java -Dlog4j.configurationFile="path to log4j2.xml" \
-jar "path to xina_import.jar" \
[JSON file path] \
[JSON file path]...
Directory
If the -dir
argument is used, XINA Import will attempt to import all *.json
files in the specified directory in alphabetical order. It is recommended to include -movejson
or -deljson
to track progress, in case the import is interrupted.
java -Dlog4j.configurationFile="path to log4j2.xml" \
-jar "path to xina_import.jar" \
-dir "path to directory" \
-movejson "path to different directory"
Watch
If the -watch
argument is used, XINA Import will attempt to import all *.json
files in the specified directory in alphabetical order. Once complete, the directory is watched for any new JSON files, which are imported as they become available. It is required to include -movejson
or -deljson
, as otherwise files would be continuously re-imported.
java -Dlog4j.configurationFile="path to log4j2.xml" \
-jar "path to xina_import.jar" \
-watch "path to directory" \
-movejson "path to different directory"