properties:write-project-properties

Full name:

org.kuali.maven.plugins:properties-maven-plugin:1.3.0:write-project-properties

Description:

Writes project properties to a file.

Attributes:

  • Requires a Maven project to be executed.

Required Parameters

Name Type Since Description
outputFile File - The file that properties will be written to
Default value is: ${project.build.directory}/properties/project.properties.

Optional Parameters

Name Type Since Description
antEchoPropertiesMode boolean - If true, the plugin will create the properties file formatted the same way Ant formats properties files using the echoproperties task. This mode adds 3 custom properties at the top of the file, DSTAMP, TODAY, and TSTAMP
Default value is: false.
exclude String - Comma separated set of properties to exclude when writing the properties file
include String - Comma separated set of properties to write to the properties file. If provided, only the properties matching those supplied here will be written to the properties file.
includeEnvironmentVariables boolean - If true, the plugin will include environment variables when writing the properties file. Environment variables are prefixed with "env". Environment variables override project properties.
Default value is: false.
includeSystemProperties boolean - If true, the plugin will include system properties when writing the properties file. System properties override both environment variables and project properties.
Default value is: false.

Parameter Details

antEchoPropertiesMode:

If true, the plugin will create the properties file formatted the same way Ant formats properties files using the echoproperties task. This mode adds 3 custom properties at the top of the file, DSTAMP, TODAY, and TSTAMP
  • Type: boolean
  • Required: No
  • Expression: ${properties.antEchoPropertiesMode}
  • Default: false

exclude:

Comma separated set of properties to exclude when writing the properties file
  • Type: java.lang.String
  • Required: No
  • Expression: ${properties.exclude}

include:

Comma separated set of properties to write to the properties file. If provided, only the properties matching those supplied here will be written to the properties file.
  • Type: java.lang.String
  • Required: No
  • Expression: ${properties.include}

includeEnvironmentVariables:

If true, the plugin will include environment variables when writing the properties file. Environment variables are prefixed with "env". Environment variables override project properties.
  • Type: boolean
  • Required: No
  • Expression: ${properties.includeEnvironmentVariables}
  • Default: false

includeSystemProperties:

If true, the plugin will include system properties when writing the properties file. System properties override both environment variables and project properties.
  • Type: boolean
  • Required: No
  • Expression: ${properties.includeSystemProperties}
  • Default: false

outputFile:

The file that properties will be written to
  • Type: java.io.File
  • Required: Yes
  • Expression: ${properties.outputFile}
  • Default: ${project.build.directory}/properties/project.properties