本文介绍了在后台运行DXL脚本(命令行):DXL / DOORS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用命令行启动dxl脚本。但我收到很多警告和错误。



当我尝试这个脚本在门gui,它工作正常,但当我尝试这个命令行没有gui,它doesn 't。



这是警告的图片:







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



为什么它不能使用命令行?



这是一个我尝试运行的链接:



这是一个链接,在我的运行脚本中导入



这是一个链接,二次导入我的运行脚本

解决方案

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

  Rational DOORS在批处理模式下。 Rational DOORS在没有GUI的情况下启动(它禁止登录屏幕和数据库浏览器),运行指定的DXL程序,然后停止。 
在批处理模式下,通常需要使用其他开关,如-user,-password和-project来登录并指定当前项目。

-batch开关的参数指定包含要在批处理模式下运行的DXL程序的文件。

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



您列出的错误像常规的DXL错误,所以如果你需要更多的帮助,你需要发布一些代码。



编辑 p>

如果你把所有的文件放到一个它运行?另一个选项可能是在命令行中包含Addins路径。我相信问题是批处理模式不会将包含的文件视为同一作用域的一部分。


I am trying to start a dxl script with command line. But i am getting lots of warnings and errors.

When I try this script on doors gui , it works fine but when i try on this command line without gui, it doesn't.

Here is the image of warnings :

Here is the commandline script : "%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"

Why it doesn't work with commandline ? Any help, idea etc is appreciated.

EDIT :

this is a link which i try to run : myprogram.dxl

this is a link which is imported in my running script include in myprogram.dxl

this is a link which is secondly imported in my running script include in myprogram.dxl

解决方案

There are other settings you need to run in Batch mode (pulled from the DOORS help):

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.

You probably need a current project specified. Also you may need to add a command at the end of your script to exit DOORS if you don't want the session to stay open.

The errors that you list seem like regular DXL errors, so if you need more assistance than this, you will need to post some of the code.

EDIT:

If you put all of the files into one does it run? Another option may be to include the Addins path on your command line. I believe the issue is that the batch mode is not recognizing the included files as part of the same scope.

这篇关于在后台运行DXL脚本(命令行):DXL / DOORS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 04:09