productlocation

Description

Sets a property (by name) in the project to a Micro Focus product location (file or directory). The value to set is one of:

  • By specifying dir the property is set to the named sub-directory of the product install directory
  • By specifying file the property is set to the named file within the product install directory
  • By specifying dir and file the property is set to the named file within the sub-directory of the product install directory
  • By not specifying dir or file the property is set to the root product install directory

The file or directory must exist for the property to the be set.

Parameters

Attribute Description Required
property The name of the property to set. Yes
dir The name of the product sub-directory. No
file The name of the file within the product. No

Examples

Set the property called etcDirectory to the etc sub-directory of the product:

<productlocation property="etcDirectory" dir="etc" /> 

Set the property called runConfiguration to the etc/run.cfg file of the product:

<productlocation property="runConfiguration" dir="etc" file="run.cfg" />

Set the property called root to the root install directory of the product:

<productlocation property="root" />