factor
cyclically. In this tutorial, we will use environment variables to set several valeus and properties:factor
property using an environment variable<files> <file url="applications.xml" /> <file url="services.xml" /> <file url="types.xml" /> <file url="properties.xml" /> </files>
PROPERTIES
for the path of the properties fileFACTOR
for the value of the factor
property<files> <env key="PROPERTIES" default="properties.xml" /> <env key="FACTOR" default="1" /> <file url="applications.xml" /> <file url="services.xml" /> <file url="types.xml" /> <file url="${PROPERTIES}" /> </files>The default value for the
PROPERTIES
variable (if there is no environment variable of this name) will be "properties.xml". The default value for the FACTOR
variable (if there is no environment variable of this name) will be "1".
FACTOR
environment variable:<properties> <application name="publishAppli" > <module name="PublishModule" > <moduleProperty key="factor" value="${FACTOR}" /> </module> </application> </properties>
set PROPERTIES=properties.xml set FACTOR=10 "C:\Program Files\Java\jdk1.8.0_111\jre\bin\java" -jar protoFramework.jar config=filelist.xml
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence