...
Attribute | Description | Value Range | Required |
---|---|---|---|
name | The name of the property to set. | a string | yes |
value | The static value of the property. | a string | yes unless file or environment has been specified |
file | Alternatively, the properties file to load all values from | a valid path | yes, if value or environment has not been specified) |
prefix | The prefix to be added to the properties names read from a file. Only valid if the file attribute is specified. A "." is appended to the prefix value if the prefix doesn't already end on with ".". For example, if you set the attribute | a string | no |
environment | Alternatively, loads Creates property values from all existing environment variables and uses the value of the environment attribute as a prefix. A " For example, if you set specify the attribute | a string | yes if value or file has not been specified) |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<properties> <property name="info.appName" value="My Application"/> <property name="info.appsubpath" value="my-company/my-app"/> <property name="info.url" value="http://www.my-company.com"/> <property name="info.company.name" value="My Company Name"/> <property name="info.company.email" value="info@my-company.com"/> </properties> |
Example:
This sets creates properties based on the values of the properties specified.in the file "install.properties" file. The names of the properties is are the name names specified in the file with "install." added to the beginning of the name.
Code Block | ||||
---|---|---|---|---|
| ||||
<properties>
<property file="install.properties"/>
<property prefix="install"/>
</properties> |
Example:
This creates properties based on the values of all of the system variables available to the installer. The names of the properties are the names of the system variables with "env." added to the beginning of the name.
Code Block | ||||
---|---|---|---|---|
| ||||
<properties>
<property environment="env"/>
</properties> |
AnchorMavenProperties MavenProperties
Maven Properties
MavenProperties | |
MavenProperties |
...