Command-line switches for the API example

You can run the example as an application from a command-line utility.
Open a command-line utility and run commands in this format:
java –jar SampleDocgen.jar <docspecpath> [-home file_path] [-workArea file_path] [-remoteURL URL] [-remoteUser user] [-remotePassword password] [-Duser.language=language_code] [-Duser.country=country_code]
Table 1. Command-line options for the API
Command-line options Description
-home Value is a full path to the parent directory of the config folder.
  • Optional if Rational® Publishing Engine is installed.
  • Required if Rational Publishing Engine is not installed.
-workArea Value is a full path to where Rational Publishing Engine creates temporary files. If a value is not specified, Rational Publishing Engine uses the temp folder. Optional.
-remoteURL For remote document generations. Value is a URL to the Remote services application. If a value is not specified, the document is generated locally.
-remoteUser Value is a user name for authenticating with the Remote services application. Optional.

For more information about how user names and passwords are stored, see Security considerations for IBM® Rational Publishing Engine.

-remotePassword Value is a password for authenticating with the Remote services application. Optional

For more information about how user names and passwords are stored, see Security considerations for IBM Rational Publishing Engine.

-Duser.country A common Java™ Runtime Environment switch that is not unique to Rational Publishing Engine.

Value is a country code that corresponds to your language setting. Optional.

-Duser.language A common Java Runtime Environment switch that is not unique to Rational Publishing Engine.

Value is a language code. Optional.

Local document generation:
java –jar SampleDocgen.jar "d:\test\rpe\sample.dsx" -home "d:\test\rpe\home" -workArea "d:\tmp" -Duser.language=pt -Duser.country=BR
Remote document generation:
java –jar SampleDocgen.jar "d:\tmp\testRemote.dsx" -remoteURL "http://server:8080/rpews/docgen" -remoteUser rpe_user -remotePassword password -Duser.language=pt -Duser.country=BR

Results


Feedback