Package and deploy rules

A platform includes rules that are used to create and deploy a package file.

  • To edit package and deploy rules at a global level, select Tools > Global setup > Edit Package Rules.
  • To edit package and deploy rules at the project level, right-click on a node and select Edit Package Rules.

This opens the Edit Package Rules dialog, which is described below.

Platform

A platform is similar to the concept of building and running an application based on a set of build, link and execution rules, but instead the rules are for packaging and deploying. The Platform in the Edit Package Rules dialog corresponds to the Platform property for the Package node, and can be one of the following:
  • Java
  • ZIP
Note: Genero Application Server, Android, iOS, and iOS Simulator are not applicable to Genero Report Writer for Java, C#, PHP, and Swift.

You can add additional platforms (or duplicate an existing one) to create custom package types.

Package rules

The package rule contains a list of output files that are generated by the package rule, and a list of dependencies to determine if these output files are up to date. Figure 1 displays an example of package rules for a Java platform.
Figure: Example Package Rules

Example package rules for a Java platform.

Deploy rules

A deploy rule runs a script to deploy the package.

Commands and variables

These commands and variables are specific to package and deploy rules:

$(delete)
Command that deletes the specified file.
$(DistDir)
Variable for the path of the destination directory of the current package node.
$(generateXMLPackage)
Command that generates an XML file to describe the contents of the package. For example:
$(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.

You can add custom variables on the Variables tab of the Edit Package Rules dialog.