Automic Workload Automation

 View Only

Specifying AWI properties on the Java command line

  • 1.  Specifying AWI properties on the Java command line

    Posted Jul 09, 2020 09:53 AM
    I discovered today that it is possible to set some AWI properties using the -D java command line option.

    Properties in configuration.properties can be set using the -D java command line option when starting the AWI.
    • If an option is not also set in the configuration.properties file, the value specified on the command line will take effect.
    • If the option is also set in the configuration.properties file, the value specified in the file will take precedence over the value specified on the command line.
    It is not possible to specify on the command line the properties in the colors.properties file. Any values specified on the command line are ignored. Default values are used for any properties not specified in the colors.properties file.

    Example

    • Specifying -DautomationEngine.index=1 on the command line works fine, as long as this option is not also specified in configuration.properties.
    • Specifying -Dlogo.filename=logo-exp.png, does not work.

    It is possible to maintain separate configuration directories for each AWI system, and to specify the path at run time using -Dcom.uc4.ecc.config.dir. This does however defeat the advantage of being able specify some other properties from the command line.