RADE

Java 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 ADL_ODT_CONCATENATION environment variable

Synopsis

WhichDir directorypathname | filepathname

[Top]

Description

Finds a given directory or file among the concatenation of directories declared using the 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 ADL_ODT_CONCATENATION environment. Subdirectories must be separated using the ADL_ODT_SLASH environment variable.

This command will be used to add sonme .zip, .jar,.... to the CLASSPATH.

[Top]

Examples

To find the GW0Start.jar in the directory $OS/docs/java:
export CLASSPATH=$CLASSPATH${ADL_ODT_SEPARATOR}$(WhichDir $OS/docs/java/GW0Start.jar)

[Top]

Environment Variables

WhichDir uses the following environment variables:

ADL_ODT_CONCATENATION Contains a directory concatenation used by the WhichDir command
ADL_ODT_SLASH / on Unix, \ on Windows 
ADL_ODT_SEPARATOR : on Unix, ; on Windows 

[Top]

Diagnostics

Possible exit status values are:

0 Successful completion
>0 Failure because any of the following

[Top]


History

Version: 1 [March 2001] Document created
[Top]

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