Difference between revisions of "How to use DumpFilesToDiscCLI"

From TempusServa wiki
Jump to navigation Jump to search
(Created page with "DumpFilesToDiscCLI is a tool to run the DumpFilesToDisc codeunit directly from a Command Line Interface such as Windows Powershell. To run the command, you must have JDK 1.8 (Or probably newer) installed and set up. From here you must do the following steps: 1. get war file with www.tempusserva.dk/install/nightly/TempusServa.war 2. rename file ending to .zip 3. unzip the file 4. navigate to \TempusServa\WEB-INF\lib in zip file in a CLI 5. run the following command, but...")
 
(updated for running non-localhost)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
DumpFilesToDiscCLI is a tool to run the DumpFilesToDisc codeunit directly from a Command Line Interface such as Windows Powershell. To run the command, you must have JDK 1.8 (Or probably newer) installed and set up. From here you must do the following steps:
DumpFilesToDiscCLI is a tool to run the DumpFilesToDisc codeunit directly from a Command Line Interface such as Windows Powershell. To run the command, you must have JDK 1.8 (Or probably newer) installed and set up. You must also have access to the database server you are connecting to in the case that you are not running from localhost. From here you must do the following steps:


1. get war file with www.tempusserva.dk/install/nightly/TempusServa.war
# Get war file from www.tempusserva.dk/install/nightly/TempusServa.war
2. rename file ending to .zip
# Rename file ending to .zip
3. unzip the file
# Unzip the file
4. navigate to \TempusServa\WEB-INF\lib in zip file in a CLI
# Navigate to \TempusServa\WEB-INF\lib in zip file in a CLI such as Powershell
5. run the following command, but replace the placeholder variables, including  the <> characters with appropriate values for the given application you are running the tool on:
# Run the following command, but replace the placeholder variables, including  the <> characters with appropriate values for the given application you are running the tool on:
java -cp "./*" com.tsnocode.codeunit.common.DumpFilesToDiscCLI <live db name> <db username> <db password> <solution> <sqlCategoryKey *optional*> <sqlCategoryEntity *optional*>
 
java -cp "./*" com.tsnocode.codeunit.common.DumpFilesToDiscCLI <live db name> <db username> <db password> <Database server IP Address> <entity db name> <category field db name *optional*> <category entity db name *optional*>
 
Notice that all names must be the database names, not the front-end names. The database names of entities and fields can be found in the back-end in parentheses on the given entity. Depending on the number of files to be dumped, this tool may take a little while to run.

Latest revision as of 11:49, 12 February 2024

DumpFilesToDiscCLI is a tool to run the DumpFilesToDisc codeunit directly from a Command Line Interface such as Windows Powershell. To run the command, you must have JDK 1.8 (Or probably newer) installed and set up. You must also have access to the database server you are connecting to in the case that you are not running from localhost. From here you must do the following steps:

  1. Get war file from www.tempusserva.dk/install/nightly/TempusServa.war
  2. Rename file ending to .zip
  3. Unzip the file
  4. Navigate to \TempusServa\WEB-INF\lib in zip file in a CLI such as Powershell
  5. Run the following command, but replace the placeholder variables, including the <> characters with appropriate values for the given application you are running the tool on:

java -cp "./*" com.tsnocode.codeunit.common.DumpFilesToDiscCLI <live db name> <db username> <db password> <Database server IP Address> <entity db name> <category field db name *optional*> <category entity db name *optional*>

Notice that all names must be the database names, not the front-end names. The database names of entities and fields can be found in the back-end in parentheses on the given entity. Depending on the number of files to be dumped, this tool may take a little while to run.