Launcher 指令行選項

您可以從指令行提示來執行 Rational® Publishing Engine Launcher。您也可以建立定義檔
RPE_HOME\launcher\rpe-launcher.exe -option parameter

關於使用指令行

當您從指令行提示來執行 Rational Publishing Engine Launcher 時,請記住:

指令行選項

表 1. 與 rpe-launcher 指令搭配使用的有效選項
選項 附註
-err publish 在發佈程序期間,如果沒有配置所有的資料來源,則會提示您。如果省略這個參數,會抑制提示。
-makedocspec definition_file.xml 如果要建立文件規格,請包含這個參數與定義檔的路徑。
-noresult 同時隱藏「文件規格配置」視窗(在發佈期間會提示您指定文件規格的詳細資料)和「結果」視窗(顯示每一個輸出格式的鏈結)。
path filepath_filename.dsx 如果要在 Launcher 中開啟檔案,請包含這個參數與文件規格檔的路徑。
-publish filepath_filename.dsx

-publish -makedocspec filpath_filename.dsx

如果要產生報告,但不使用「發佈」精靈,請包含這個參數與文件規格檔的路徑。

利用 -makedocspec 參數,會從定義檔建立和發佈文件規格。

-wizard

-wizard definitions_file.xml

將 Launcher 縮至最小,並在前景啟動「配置和產生文件」精靈。

您也可以新增定義檔的路徑,來預先配置精靈中所選取範本的資料來源。

範例定義檔

您可以使用 -makedocspec 選項來指定定義檔,以便從指令行產生文件規格。

定義檔的結構由下列三個主要區段構成:
  1. docspec 區段含有文件規格建立所在的檔名和位置。
  2. 每一個 datasource 區段含有資料來源及其內容的詳細資料。
  3. 每一個 template 區段列出文件規格中要指定的範本路徑。
    註: 您無法在定義檔中指定變數。 請考慮利用 Java™ API 來取代定義檔,以供您配置範本和文件規格的變數和內容。

下列範例顯示範例定義檔,它可作為範本來配置 IBM® Rational RequisitePro®IBM Rational DOORS® 資料來源。

<?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">

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

	<datasource name="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 name="ReqPro_PR" type="REST">
		<property name="URI">http://localhost:8080/dataservices/RequisitePro/Learning Project Traditional/requirements/PR</property>
		<property name="username">john.doe</property>
		<property name="password">password</property>
	</datasource>

	<template>c:\temp\sampleTemplate.dta</template>
</definition>

意見