confProperty
element. This element has two mandatory attributes:key
: the name of the variablevalue
: the value of the variable
java -jar protoframework.jar config=filelist.xml starterGUI
This will show a Popup window allowing to override their values[1]
<files> <file url="applications.xml" /> <file url="services.xml" /> <file url="types.xml" /> <confProperty key="twoGUI" value="false" /> </files>We will have the following Popup Window allowing to override the value of the "twoGUI" property:
true
value to the allowSetByLauncher
attribute. In that case:value
attribute specifies the value which will be used to set the user-defined property if the launcher does not define this value<files> <file url="applications.xml" /> <file url="services.xml" /> <file url="types.xml" /> <confProperty key="myPath" value="D:/my/directory/" allowSetByLauncher="true" /> </files>If we start the framework by:
java -jar protoframework.jar config=filelist.xml
The myPath
value will have the D:/my/directory/
value.
java -jar protoframework.jar config=filelist.xml myPath=D:/the/other/directory
The myPath
value will have the D:/the/other/directory
value.
<files> <file url="applications.xml" /> <file url="services.xml" /> <file url="types.xml" /> <confProperty key="myPath" value="D:/my/directory/" /> </files>We can for example use this property value in the properties configuration file:
<properties> <application name="appli1" > <module name="module1" > <moduleProperty key="theGraphicPath" value="${myPath}/graphic.xml" /> </module> </application> </properties>
<files> <file url="applications.xml" /> <file url="services.xml" /> <file url="types.xml" /> <confProperty key="enable" value="false" /> </files>We can for example use this property value in the applications configuration file:
<applications> <application name="appli1" > <module name="module1" isEnabled="${enable}" > ... </module> </application> </lt;applications>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence