RADE

C++ Unit Test Manager

WhichDir

Finds a directory or a file in a workspace
Quick Reference

Name

WhichDir Finds a directory or a file in the workspace directories declared using the MKMK_LST_RTV  or the L_ODT_CONCATENATION environment variable

Synopsis

WhichDir directorypathname | filepathname

[Top]

Description

Finds a given directory or file among the concatenation of directories declared using the MKMK_LST_RTV  ( if the directory starts with $OS) or ADL_ODT_CONCATENATION environment variable. WhichDir should be used in a shell script that runs an ODT to refer to a directory or a file using a relative pathname starting with the framework name below the workspace name when an environment variable that contains the absolute pathname, such as ADL_ODT_IN or ADL_ODT_OUT, cannot be used. WhichDir scans the directories in order of declaration in MKMK_LST_RTV or ADL_ODT_CONCATENATION environment. Subdirectories must be separated using the ADL_ODT_SLASH environment variable.

[Top]

Examples

To find the Visualization/CNext/resources/graphic/cubes.cgr file with Unix, or the Visualization\CNext\resources\graphic\cubes.cgr file with Windows in the directories of the current workspace concatenation from a shell that launches an ODT.
WhichDir Visualization${ADL_ODT_SLASH}CNext${ADL_ODT_SLASH}resources
${ADL_ODT_SLASH}graphic${ADL_ODT_SLASH}cubes.cgr 

[Top]

Environment Variables

WhichDir uses the following environment variables:

MKMK_LST_RTV
ADL_ODT_CONCATENATION
ADL_ODT_SLASH

[Top]

Diagnostics

Possible exit status values are:

0 Successful completion
>0 Failure because any of the following

[Top]


History

Version: 1 [May 2000] Document created
[Top]

Copyright © 2000, Dassault Systèmes. All rights reserved.