.. ******************************************************************************* * MetaFactory.io R2 * Technical Documentation * * File name : ProRef_PropertyFiles.rst * Created by : Marnix Bochove (original text) * Updated by : Niels de Nies * * MetaFactory BV Amsterdam ******************************************************************************* .. include:: /inline-images.txt .. include:: /metadata_include.txt Property Files =============== is a sub element of and acts as a collection of elements. With you are able to include files with properties. These properties may be useful to save local resource paths. .. code-block:: xml :caption: syntax :name: PR-propertyFiles-01 :linenos: :emphasize-lines: 4-6 ... ... .. rubric:: Potential content of a property file .. code-block:: #path to parent folder output.path=../parent-path #path to some library lib1.path=../../some-shared-library .. rubric:: Attributes There are no attributes for . .. rubric:: Sub elements .. list-table:: sub elements :widths: 15 55 15 15 :header-rows: 1 * - Name - Details - Attributes - Number * - propertyFile - Path to the property file - filePath, Required ignoreMissing, Optional - 0-n Example ~~~~~~~ :numref:`PR-propertyFiles-02` shows a project file metafactory.xml that defines a file ‘local.properties’ in the propertyFiles element. The file local.properties brings some properties that are used in the project together. A programmer can alter these properties for personal use without having to change the project file. .. code-block:: xml :caption: in project file :name: PR-propertyFiles-02 :linenos: :emphasize-lines: 4-7 ... ... The file local.properties for the example above could contain the following: .. code-block:: #output path used in metafactory.xml to specify path for created java files, xml files and other files output.path=../test-application # my test output directory. #output.path=../hours-administration The properties defined in the ‘local.properties’ are reachable via the variable project.property. For the output path this would be ${project.property.output.path}