在后台运行DXL脚本(命令行):DXL / DOORS

时间:2013-11-27 10:13:13

标签: cmd ibm-doors

我正在尝试使用命令行启动dxl脚本。但是我收到很多警告和错误。

当我在门gui上尝试这个脚本时,它运行正常,但是当我在没有gui的情况下尝试这个命令行时,它没有。

以下是警告图片:

enter image description here

enter image description here

这是命令行脚本: "%ProgramFiles%\IBM\Rational\DOORS\9.3\bin\doors.exe" -d 36677@bie -u "xxx yyy" -P don -b "d:\workset\mc\addins\Devel\exporterRTF.dxl"

为什么它不能与命令行一起使用?任何帮助,想法等都表示赞赏。

编辑:

这是我尝试运行的链接: myprogram.dxl

这是在我的正在运行的脚本 include in myprogram.dxl

中导入的链接

此链接在我的正在运行的脚本 include in myprogram.dxl

中进行了第二次导入

1 个答案:

答案 0 :(得分:2)

您需要在批处理模式下运行其他设置(从DOORS帮助中提取):

Runs Rational DOORS in batch mode. Rational DOORS starts without the GUI (it suppresses the login screen and the database explorer), runs the specified DXL program, and then stops.
In batch mode you normally need other switches like -user, -password and -project to log in and specify the current project.

The parameter of the -batch switch specifies the file that contains the DXL program that you want to run in batch mode.

您可能需要指定当前项目。此外,如果您不希望会话保持打开状态,您可能需要在脚本末尾添加一个命令以退出DOORS。

您列出的错误似乎是常规的DXL错误,因此如果您需要更多帮助,则需要发布一些代码。

修改

如果您将所有文件放入一个文件中,它会运行吗?另一个选项可能是在命令行中包含Addins路径。我认为问题在于批处理模式没有将包含的文件识别为同一范围的一部分。