![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Creating Automated DXL for Archiving Topic Summary: Created On: 11-Feb-2004 18:51 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: You'll be writing a batch DXL program. It should presume that NO project is currently selected. The "today()" command gets today's date. The archive code may look like attached. You'll need to issue a command to the Operating system that looks like: ".../bin/doors.exe -b MyArchiveDXL.dxl -u UserArchive -P UserArchive's Password Note you need the User/Password/Batch commands -u-P-b as per "command line switches" chapter in the DOORS manual. I'd be tempted to create a special user UserArchive who has Archive privaleges but has only "R" access to stuff in the database. That way having this users Password unencrypted in Icons or elsewhere is no disaster. Make an Icon that works (opens DOORS, runs some "hellow" DXL, and exits); once that works try to get Time Target to issue a similar command when the time rolls around. - Louie | |
![]() |
|
Does anybody know the command line for an Archive within a DXL?
Also, I would like to change the path of the DMP file created, how do I do this? Any help is greatly appreciated! ![]() |
|
![]() |
|
![]() |
|
Are you asking how to archive modules and projects from DXL? Are you asking how to specify the output Windows *.dma File Name using DXL? Are you asking how to modify the Archive Dialog box displayed when you manually try to Archive?
- Louie |
|
![]() |
|
![]() |
|
How to archive modules and projects from a DXL. I am attempting to use Time Target to execute an automated script that runs an archive of a project daily. I also wish to use a date/time stamp for the created .dmp file. However, i'm am not too versed as far as the scripting and syntax of DXLs.
Again, thanks for the help. |
|
![]() |
|
![]() |
|
You'll be writing a batch DXL program. It should presume that NO project is currently selected.
The "today()" command gets today's date. The archive code may look like attached. You'll need to issue a command to the Operating system that looks like: ".../bin/doors.exe -b MyArchiveDXL.dxl -u UserArchive -P UserArchive's Password Note you need the User/Password/Batch commands -u-P-b as per "command line switches" chapter in the DOORS manual. I'd be tempted to create a special user UserArchive who has Archive privaleges but has only "R" access to stuff in the database. That way having this users Password unencrypted in Icons or elsewhere is no disaster. Make an Icon that works (opens DOORS, runs some "hellow" DXL, and exits); once that works try to get Time Target to issue a similar command when the time rolls around. - Louie |
|
![]() |
|
![]() |
|
Just a wee thought -- you might want to capture the current date once at the beginning. If you're running your automated archiver overnight, you could end up with one date in the directory name and a different one in the project name. This is the sort of thing that May well not appear initially, when you've only got a small database, but as the content expands, your archive may well start to run past midnight, and you'll get all confused
![]() Paul. ------------------------- Paul dot Tiplady at TRW dot com TRW Automotive |
|
![]() |
|
![]() |
|
"wee thought" indeed. Yes, I have this very problem. We cannot schedule ANY batch DXL since that requires some unencrypted passwords and the IT folks cannot stand that, even for benign users on a completely protected server (with some justification since this is a sensitive military program and the Securiy Folks are very anal-retentive here). So I wrote some "defer" code that allows us to invoke the archive in the late afternoon but it waits until later to run. The prompt figures out the target folder name (say at 5pm) but when we ran the archive we actually had the date-problem you suggested since archiving tended to go past midnight. I solved this by just starting the archive a little earlier, in this case 10pm.
Your solution, however, still has some residual confusion since the name of the archive will be the 4th but the create date (as per Windows) will sometimes be the 5th. As for most issues there is no perfect solution. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Creating Automated DXL for Archiving
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.