Defining Environment Variables

PowerDesigner defines a certain number of environment variables for use used in generation commands and with GTL. You can edit these variables and add your own.

  1. Select Tools > General Options, and click the Variables category in the left-hand pane.

    Variable

    Description

    Default

    CMD

    Windows command interpreter

    command.com or cmd.exe

    HOME

    Variable defining the default home directory

    J2EEVERIF

    Batch program for verifying if the deployment jar for an EJB is correct

    verifier.bat

    JAR

    Command for archiving java files

    jar.exe

    JAVA

    Command for running JAVA programs

    java.exe

    JAVAC

    Command for compiling JAVA source files

    javac.exe

    JAVADOC

    Command for defining JAVA doc comments

    javadoc.exe

  2. Click in the row of an existing variable in order to edit its value, or click the Add a Row tool to create a new variable and enter its value.
  3. Click OK to close the dialog.
    Note: To use a variable in GTL (see Customizing and Extending PowerDesigner > Customizing Generation with GTL ), prefix it with a dollar sign, and wrap it in percent signs. For example, %$CMD%.