DiveTab Cache Seeder

The cacheseed.jar utility can be called from the command line to pre-cache your DiveTab pages. The utility is located in the DI/Solution/webapps/<diveport> directory. It examines the DiveTab configuration and prepares dives for the users listed in the Project Settings. The current usage is:

java -jar cacheseed.jar <options>

Type java -jar cacheseed.jar -help to display the syntax for using the Cache Seeder utility. The options are listed in the following table.

Option Example Description
--url <arg>

--url https://dimins.com/divetab

--url https://dimins.com:2130/divetab

Supplies the URL to the server hosting the DiveTab.

Include the port number where necessary.

--username <arg> --username admin007 Indicates the Username of a DiveLine administrator.
--dataroot <arg> --dataroot c:\di\solution\dl-dataroot Indicates the local path to the DiveLine dataroot if running on the sever.
--password <arg> --password double07 Specifies the DiveLine administrator password.
If you are running on the DiveLine server, you can specify the dataroot instead of supplying the password. Assuming the user running the utility can write to the dataroot, the webauth mechanism generates a one-time password.
--debug --debug Prints additional diagnostic information.
--encoding <arg> --encoding UTF-8 Forces a particular table encoding version. This is generally not needed.

When preparing the list of dives to perform, DivePort scans divetab scripts in the context of each user. It will generate warnings when deprecated tags are used or if the script is nonsensical in some way. Only new warnings not encountered before are displayed when doing the scan for subsequent users. Any miss-configured users are noted and reported. The cacheseed.jar utility program returns a non-zero exit status to the operating system if any errors occur during the process.

During development, use of cacheseed.jar can be done manually on the command line or by using an Exec node running "java -jar cacheseed.jar ..." in a Production script.

See also: