run DXL script on the background (command line) : DXL/DOORS

Tags: cmd dxl doors
Question!

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 :

enter image description here

enter image description here

Here is the commandline script : "%ProgramFiles%\IBM\Rational\DOORS\9.3\bin\doors.exe" -d [email protected] -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



Answers
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.



This video can help you solving your question :)
By: admin