public final class Constant extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Constant.Section
The section allows to group build meta data properties.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DATE_PATTERN
The default pattern for the (locale independent) build date.
|
static String |
MAVEN_ACTIVE_PROFILE_PREFIX
The prefix used to provide active profile information of the build.
|
static String |
MAVEN_EXECUTION_PROPERTIES_PREFIX
The prefix used to provide execution properties to the build properties
file.
|
static String |
PROP_NAME_ARTIFACT_ID
The name of the project property that stores the artifact ID as read from
the POM.
|
static String |
PROP_NAME_BUILD_DATE
The name of the project property that stores the formatted build date.
|
static String |
PROP_NAME_BUILD_DATE_PATTERN
The name of the project property that stores the pattern of the build date.
|
static String |
PROP_NAME_BUILD_DURATION
The name of the project property that stores the duration of the build in
milliseconds.
|
static String |
PROP_NAME_BUILD_TIMESTAMP
The name of the project property that stores the build timestamp.
|
static String |
PROP_NAME_BUILD_USER
The name of the project property that stores the build user.
|
static String |
PROP_NAME_BUILD_YEAR
The name of the project property that stores the build year.
|
static String |
PROP_NAME_COPYRIGHT_YEAR
The name of the project property that stores the copyright year.
|
static String |
PROP_NAME_FULL_VERSION
The name of the project property that stores the full version that may
include the version, the build date, the build number and the revision
number.
|
static String |
PROP_NAME_GROUP_ID
The name of the project property that stores the group ID as read from the
POM.
|
static String |
PROP_NAME_HOSTNAME
The name of the property that stores the name of the host the build has
been run on.
|
static String |
PROP_NAME_JAVA_COMPILER
The name of the property that stores the name of the Java compiler being
executed for the build.
|
static String |
PROP_NAME_JAVA_OPTS
The name of the property that stores the Java opts set in the environment.
|
static String |
PROP_NAME_JAVA_RUNTIME_NAME
The name of the property that stores the name of Java runtime being
executed for the build.
|
static String |
PROP_NAME_JAVA_RUNTIME_VERSION
The name of the property that stores the version of Java runtime being
executed for the build.
|
static String |
PROP_NAME_JAVA_VENDOR
The name of the property that stores the name of the vendor of Java being
executed for the build.
|
static String |
PROP_NAME_JAVA_VM
The name of the property that stores the name of the Java VM being executed
for the build.
|
static String |
PROP_NAME_MAVEN_ACTIVE_PROFILES
The name of the property that contains names of active profiles during the
build.
|
static String |
PROP_NAME_MAVEN_CMDLINE
The name of the property that stores the command line to start the build.
|
static String |
PROP_NAME_MAVEN_EXECUTION_PROJECT
The name of the property that contains the name of the execution project.
|
static String |
PROP_NAME_MAVEN_FILTERS
The name of the property that contains the name of the filters being
registered for the build.
|
static String |
PROP_NAME_MAVEN_GOALS
The name of the property that stores the goals given on the command line
for the build.
|
static String |
PROP_NAME_MAVEN_IS_EXECUTION_ROOT
The name of the property that flags if the artifact is build within the
project that is the execution root.
|
static String |
PROP_NAME_MAVEN_OPTS
The name of the property that stores the Maven opts set in the environment.
|
static String |
PROP_NAME_MAVEN_VERSION
The name of the property that stores the version of Maven being executed
for the build.
|
static String |
PROP_NAME_OS_ARCH
The name of the property that stores the architecture of the operating
system the build has been run on.
|
static String |
PROP_NAME_OS_NAME
The name of the property that stores the name of the operating system the
build has been run on.
|
static String |
PROP_NAME_OS_VERSION
The name of the property that stores the version of the operating system
the build has been run on.
|
static String |
PROP_NAME_PROJECT_CATEGORY
The name of the property that stores a value to categorize the project.
|
static String |
PROP_NAME_PROJECT_HOMEPAGE
The name of the property that stores URL of the project homepage.
|
static String |
PROP_NAME_PROJECT_OPS
The name of the property that stores URL to a page useful for operations
teams.
|
static String |
PROP_NAME_PROJECT_SUBCATEGORY
The name of the property that stores a value to further categorize the
project.
|
static String |
PROP_NAME_PROJECT_TAGS
The name of the property that stores a comma separated list of tags to
categorize the project.
|
static String |
PROP_NAME_SCM_LOCALLY_MODIFIED
The name of the project property that stores the information if the local
sources are modified.
|
static String |
PROP_NAME_SCM_LOCALLY_MODIFIED_FILES
The name of the project property that stores the files that are locally
modified.
|
static String |
PROP_NAME_SCM_REVISION_DATE
The name of the project property that stores the date the revision number
was set.
|
static String |
PROP_NAME_SCM_REVISION_ID
The name of the project property that stores the revision number provided
by the SCM.
|
static String |
PROP_NAME_SCM_URL
The name of the project property that stores the URL to the SCM server.
|
static String |
PROP_NAME_VERSION
The name of the project property that stores the version as read from the
POM.
|
static List<Constant.Section> |
REPORT_PROPERTIES
List of properties, organized in sections, relevant to the build report.
|
static String |
SECTION_ARTIFACT
The name of the artifact section.
|
static String |
SECTION_BUILD_DATE
The name of the build date section.
|
static String |
SECTION_BUILD_JAVA
The name of the Java build section.
|
static String |
SECTION_BUILD_MAVEN
The name of the Maven build section.
|
static String |
SECTION_BUILD_MISC
The name of the miscellaneous build section.
|
static String |
SECTION_BUILD_RUNTIME
The name of the runtime build section.
|
static String |
SECTION_BUILD_SCM
The name of the SCM section.
|
static String |
SECTION_PROJECT
The name of the project section.
|
static Set<String> |
STANDARD_PROPERTIES
The set of standard keys known to be rendered in sections.
|
| Modifier and Type | Method and Description |
|---|---|
static Properties |
calcNonStandardProperties(Properties buildMetaDataProperties,
List<Property> userProperties)
Calculates the non standard properties relevant for the misc section.
|
static boolean |
isIntendedForMiscSection(String name)
Checks if the given property is rejected from being displayed in the misc
section of a report.
|
static String |
prettify(String string)
Prettifies a multi value string that contains brackets.
|
static String |
prettifyFilesValue(Object value)
Prettifies a value string that contains brackets.
|
public static final String SECTION_BUILD_SCM
The value of this constant is "build.scm".
public static final String SECTION_ARTIFACT
The value of this constant is "build.artifact".
public static final String SECTION_BUILD_DATE
The value of this constant is "build.timeAndDate".
public static final String SECTION_BUILD_RUNTIME
The value of this constant is "build.runtime".
public static final String SECTION_BUILD_JAVA
The value of this constant is "build.java".
public static final String SECTION_BUILD_MAVEN
The value of this constant is "build.maven".
public static final String SECTION_BUILD_MISC
The value of this constant is "build.misc".
public static final String SECTION_PROJECT
The value of this constant is "project".
public static final String PROP_NAME_SCM_URL
The value of this constant is "build.scmRevision.url".
public static final String PROP_NAME_SCM_REVISION_ID
The value of this constant is "build.scmRevision.id".
public static final String PROP_NAME_SCM_REVISION_DATE
The value of this constant is "build.scmRevision.date".
public static final String PROP_NAME_SCM_LOCALLY_MODIFIED
The value of this constant is "build.scmLocallyModified".
public static final String PROP_NAME_SCM_LOCALLY_MODIFIED_FILES
The value of this constant is "build.scmLocallyModified.files".
public static final String PROP_NAME_BUILD_DATE
The value of this constant is "build.date".
public static final String PROP_NAME_BUILD_TIMESTAMP
The value of this constant is "build.timestamp.millis".
public static final String PROP_NAME_BUILD_DATE_PATTERN
The value of this constant is "build.date.pattern".
public static final String PROP_NAME_GROUP_ID
The value of this constant is "build.groupId".
public static final String PROP_NAME_ARTIFACT_ID
The value of this constant is "build.artifactId".
public static final String PROP_NAME_VERSION
The value of this constant is "build.version".
public static final String PROP_NAME_FULL_VERSION
The value of this constant is "build.version.full".
public static final String PROP_NAME_BUILD_YEAR
The value of this constant is "build.year".
public static final String PROP_NAME_BUILD_DURATION
The value of this constant is "build.duration".
public static final String PROP_NAME_COPYRIGHT_YEAR
The value of this constant is "build.copyright.year".
public static final String DEFAULT_DATE_PATTERN
The value of this constant is "dd.MM.yyyy".
public static final String PROP_NAME_BUILD_USER
user.name.
The value of this constant is "build.user".
public static final String PROP_NAME_HOSTNAME
The value of this constant is "build.host.name".
public static final String PROP_NAME_OS_NAME
The value of this constant is "build.os.name".
public static final String PROP_NAME_OS_ARCH
The value of this constant is "build.os.arch".
public static final String PROP_NAME_OS_VERSION
The value of this constant is "build.os.version".
public static final String PROP_NAME_JAVA_RUNTIME_NAME
The value of this constant is "build.java.runtime.name".
public static final String PROP_NAME_JAVA_RUNTIME_VERSION
The value of this constant is "build.java.runtime.version".
public static final String PROP_NAME_JAVA_VENDOR
The value of this constant is "build.java.vendor".
public static final String PROP_NAME_JAVA_VM
The value of this constant is "build.java.vm".
public static final String PROP_NAME_JAVA_COMPILER
The value of this constant is "build.java.compiler".
public static final String PROP_NAME_MAVEN_VERSION
The value of this constant is "build.maven.version".
public static final String PROP_NAME_MAVEN_GOALS
The value of this constant is "build.maven.execution.goals".
public static final String PROP_NAME_MAVEN_CMDLINE
The value of this constant is "build.maven.execution.cmdline".
public static final String PROP_NAME_MAVEN_OPTS
The value of this constant is "build.maven.execution.opts".
public static final String PROP_NAME_JAVA_OPTS
The value of this constant is "build.maven.execution.java.opts".
public static final String PROP_NAME_MAVEN_IS_EXECUTION_ROOT
The value of this constant is "build.maven.execution.isRoot".
public static final String PROP_NAME_MAVEN_EXECUTION_PROJECT
The value of this constant is "build.maven.execution.project".
public static final String PROP_NAME_MAVEN_FILTERS
The value of this constant is "build.maven.execution.filters".
public static final String MAVEN_EXECUTION_PROPERTIES_PREFIX
The value of this constant is "execution.property".
public static final String PROP_NAME_MAVEN_ACTIVE_PROFILES
The value of this constant is "build.maven.execution.profiles.active".
public static final String MAVEN_ACTIVE_PROFILE_PREFIX
The value of this constant is "build.maven.execution.profile.active".
public static final String PROP_NAME_PROJECT_HOMEPAGE
The value of this constant is "project.page.home.url".
public static final String PROP_NAME_PROJECT_OPS
The value of this constant is "project.page.ops.url".
public static final String PROP_NAME_PROJECT_CATEGORY
The value of this constant is "project.category".
public static final String PROP_NAME_PROJECT_SUBCATEGORY
The value of this constant is "project.subcategory".
public static final String PROP_NAME_PROJECT_TAGS
The value of this constant is "project.tags".
public static final List<Constant.Section> REPORT_PROPERTIES
public static boolean isIntendedForMiscSection(String name)
name - the name of the property to check.true if the property is to be rendered in a misc
section, false otherwise.public static Properties calcNonStandardProperties(Properties buildMetaDataProperties, List<Property> userProperties)
buildMetaDataProperties - the build meta data.userProperties - the list of a system properties or environment
variables to be selected by the user to include into the build
meta data properties.public static String prettify(String string)
string - the string to prettify.Copyright © 2006-2014. All Rights Reserved.