Command line options for build, link, execution rules

Special command line options can be used for build, link, and execution rules.

For command line options specific to packaging and deploying, see Package and deploy rules.

Table 1. Command line operands
Command line / syntax Description
$(blockpoint)
$(blockpoint) [options] filename
The $(blockpoint) command manages user-added code by extracting or injecting code between BLOCK and POINT tags in a generated file.
$(copy)
$(copy) sourceFilePath destinationFilePath

The $(copy) command copies the given file or directory to the given destination in a platform-independent way. When copying a directory, the copy is recursive.

$(delete)
$(delete) filePath1 filePath2 ...
The $(delete) command removes the given files or directories in a platform independent way. When deleting a directory, the delete is recursive; all subdirectories and files contained within the directory are deleted.
$(echo)
$(echo) [-n] [string] [> outputFilePath]

The $(echo) command prints a string to the Output window.

If used with multiple strings (for example, a list PM variable), you can use the -n option to force a carriage return between them.

To redirect the output to a file, use the greater-than (>) sign and specify the file, for example:
echo "Hello World" > "c:\file.txt"
$(generate)
$(generate) [options] filename
The $(generate) command creates an intermediary XML file from modeled entities.
$(javac)
$(javac) [options] filePath
The $(javac) command compiles the Java code.
$(move)
$(move) sourceFilePath destinationFilePath
The $(move) command moves the given file or directory to the given destination in a platform-independent way. When moving a directory, the move command is recursive.
$(tcl) - deprecated
tclsh
tclsh [options] filename.xml
The tclsh executable generates the final file by using both a Tcl template file and the intermediary XML file created by the $(generate) command.