Running Rational Publishing Engine from a command line

You can run Rational® Publishing Engine from the command-line prompt by setting the parameters. For example, %RPE_HOME%\launcher\rpe-launcher.exe [-switch] [parameter]
Table 1. Valid switches for rpe-launcher.exe
Switch Notes
path To open a file in Launcher, pass only the path to a document specification file.
-wizard Minimizes the launcher and starts the Publish wizard in the foreground. Optionally follow this parameter with the path to a definition file, which preconfigures the data source in the template that is selected in the wizard.
-noresult Causes the Results dialog to not be shown.
-makedocspec This parameter, with the path to a definitions file, causes the launcher to create a document specification file.
-publish This parameter, with the path to a document specification file, starts the publishing process. This parameter, with the - makedocspec parameter, publishes the document specification created from the definition file.
-err If this parameter is omitted, noncritical errors that occur during the publishing process are ignored.

The following example shows a sample definitions file that can be used to configure IBM® Rational Tau and IBM Rational DOORS® data sources.

The <docspec> section instructs the Rational Publishing Engine Launcher to save the generated document specification in a certain location.

Each <datasource> section specifies a data source type and its properties.

Each <template> section specifies a path to the template to be added to the document specification.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definition xmlns="http://www.ibm.com/rational/rpe/definitionFile"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.ibm.com/rational/rpe/definitionFiledefinitionFile.xsd">

	<docspec>c:\temp\docspec\generatedds.dsx</docspec>

	<datasource type="DOORS">
		<property name="URI">/Rational Publishing Engine - RPE/Requirements/RPE - User Requirements</property>
		<property name="module_id">00000024</property>
		<property name="baseline">Currentproperty name="baseline">Current</property>
		<property name="view">Object Type View</property>
	</datasource>

	<datasource id="DOORS 1" type="DOORS">
		<property name="URI">/demo/car/System requirements</property>
		<property name="baseline">Currentname="baseline">Current</property>
		<property name="view">Industrial</property>
	</datasource>

	<datasource id="" type="Tau">
		<property name="URI">C:\ProgramFiles\IBM\Rational\TAU\4.3\examples\umlVerificationCoffeeMachine\CMdesign.ttp</property>
	</datasource>

	<template>C:\Program Files\IBM\Rational\Rational Publishing
Engine\1.1\source\DOORS\examples\doorsData.dta</template>

</definition>

Feedback