Package and deploy rules (desktop)

A platform includes a package rule and a deploy rule. These rules are the commands used to create and deploy a package file.

Package rules

The package rule contains a list of files that are generated by the package rule (output files) and a list of dependencies to determine if the output files are up to date. The default Package Rules can be viewed by right-clicking on the Package Node and selecting Edit Package Rules.

Figure: Example Package Rule


Default package rules.

Deploy rules

A deploy rule runs a script to deploy the package to a configured application server.

Figure: Example Deploy Rule



Commands and variables

These commands and variables are specific to package and deploy rules, but other predefined node variables such as $(ProjectDir) and $(InstallDir) are also valid. See the Predefined node variables topic in the Genero Studio User Guide for a list of node variables.

$(delete)
This command, available in a package rule, deletes the specified file.
$(DistDir)
Variable for the path of the destination directory of the current package node.
$(generateXMLPackage)
This command, available in a package rule, generates an XML file that describes the contents of the package.
$(generateXMLPackage) -o outputFile.xml
$(PackageFiles)
Variable for the list of files in the package.
$(packageId)
Variable for the package id.
$(PackageName)
Variable for the name of the current package node.