Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Command Switches/Registry
Topic Summary:
Created On: 18-Jun-2004 17:49
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 18-Jun-2004 17:49
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I notice the Registry command "ExportDirectory" command is available in the Registry but NOT available as a command line switch. Are there others?

Anybody know which command line switches are NOT available in the Registry? "cli" and "dxl" seem to be two of them.

- Louie
Report this to a Moderator Report this to a Moderator
 29-Jun-2004 16:07
User is offline View Users Profile Print this message


Ross Morgan

Posts: 74
Joined: 15-Apr-2004

key value pairs in the "config" registry key are returned by the getenv() dxl function, but these values are not added to the environment associated with the doors process unless you call setenv(). Commandline parameter settings take precedence over registry values.

so on Windows, the DOORS environment = the win32 environment for the process + config settings + commandline settings

command line options which correspond with a DOORS environment variable will persist for the duration of the session.

the following environment variables are used by the doors client:
DATA
LOCALDATA
HOME
ADDINS
ATTRIBUTEADDINS
LAYOUTADDINS
EXPERT
SECURITY
LICENSEKEY
LICENSESTRING
HHPATH
HOHPATH
DICTIONARY
TEMPDICTIONARY
PROJECT
DEFOPENMODE
DEFOPENLINKMODE
ARCHIVEDIR
EXPORTDIRECTORY
BROWSERNAME
OLEOPENLIMIT
DEBUG
HEAP
DXLSOCKET2
COMPUTERNAME
USERNAME
COMPANYNAME
PARTITIONLOG

these names can be prepended with "DOORS" and getenv() will return the same value.
e.g
getenv("DATA") returns the same as getenv("DOORSDATA")
Report this to a Moderator Report this to a Moderator
 2-Jul-2004 22:28
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I did some testing on the "DOORS" versions of these variables and deduced that if there are Command line options, the DOORS version is different from the regular: if "C:\Data" is the default data location but you use "-d "c:\DataTwo" in the command line, variable "data" is the first whereas "DOORSDATA" is the second. If there is no command line option then the two are the same.
Report this to a Moderator Report this to a Moderator
 5-Jul-2004 16:03
User is offline View Users Profile Print this message


Ross Morgan

Posts: 74
Joined: 15-Apr-2004

yes, DOORS is a bit quirky here

commandline string options are added to the DOORS environment prepended with "DOORS" e.g -dxl option is stored in DOORSDXL. (single-character commandline aliases are expanded first e.g -d becomes -DATA)

getenv() only matches command line values if given the long form, but accepts both short and long forms for values in the environment and the config section of the registry.

e.g
getenv("DOORSDXL")
-looks for "-dxl" command line option, then
-looks for "dxl" key value in the HKCU and HKLM config sections, then
-looks for "DOORSDXL" value in the config section, then
-looks for "DOORSDXL" in the win32 environment

getenv("DXL")
-looks for "dxl" key value in the HKCU and HKLM config sections, then
-looks for "DXL" in the win32 environment
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.