Setting Build Properties for Command Central Assets
You must set the following properties in the build.properties file in IBM webMethods Asset Build Environment:
sag.install.dir
Set the property to the directory in which IBM webMethods Asset Build Environment is installed:
sag.install.dir=ABE_HOME
build.source.dir
It is recommended that you structure the build source directory of the Command Central configuration assets as follows:
C:.
| <templates>
| template-alias-1.yaml
|
\---template-alias-2
| template.yaml
|
\---template-alias-3
| template.yaml
|
\---files
license_key.xml
Each
template-alias subdirectory contains the
template.yaml file of the configuration asset
and any other files required by the configuration properties included in the
template.
The following naming conventions apply for the subdirectories and
YAML files located directly under the
templates
directory:
- The name of the YAML file is the
alias:specified in the YAML file. - The name of each
template-aliassubdirectory is thealias:specified in the template YAML file located in the subdirectory.
With this build source directory structure, you can set the
build.source.dir property as follows:
- To generate all
Command Central
assets available in the source directory:
build.source.dir=<root_path>/<templates>/where
<templates>is the name of the directory that contains the source template files. Command Central generates a composite asset for each:-
<templates>/<template_alias>.yamlfile -
<templates>/<template_alias>subdirectory
-
- To generate just one of the available
Command Central
assets:
- Copy the template file (and any other required files) to a
subdirectory directly under
<root_path>/<some_
template_dir>:
<root_path>/<some_template_dir>/<template_alias>/template.yamlor copy the template file directly under <root_path>/<some_template_dir>:
<root_path>/<some_template_dir>/<template_alias>.yaml - Set the build source directory property to:
build.source.dir=<root_path>/<some_template_dir>/
- Copy the template file (and any other required files) to a
subdirectory directly under
<root_path>/<some_
template_dir>:
Example
In the following example, the configuration assets are located
inside the
templates
build source directory. The name of the
IS-template
subdirectory matches the
alias: IS-template in the
template.yaml file, located in this
subdirectory. The name of the
sag-template.yaml file matches the
alias: sag-template specified in the file.
| templates
| sag-template.yaml
|
\---IS-template
| template.yaml
When
build.source.dir=<root_path>/templates/, the
composite assets generated after running the build script are:
| <build.output.dir>
|
\---CC
| IS-template.acdl
| IS-template.zip
| sag-template.acdl
| sag-template.zip
build.output.dir
Set the property to:
build.output.dir=<root_path>/build/
The build script creates a subdirectory with name
CC under
<root_path>/build and places the
Command Central
composite assets from the output in that subdirectory.
enable.build.CC
Set the property to
true.