|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.plugin.buildmetadata.common.Constant
public final class Constant
Constants used in this package.
Nested Class Summary | |
---|---|
static class |
Constant.Section The section allows to group build meta data properties. |
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SECTION_BUILD_SCM
The value of this constant is "build.scm".
"build.scm"
public static final String SECTION_ARTIFACT
The value of this constant is "build.artifact".
"build.artifact"
public static final String SECTION_BUILD_DATE
The value of this constant is "build.timeAndDate".
"build.timeAndDate"
public static final String SECTION_BUILD_RUNTIME
The value of this constant is "build.runtime".
"build.runtime"
public static final String SECTION_BUILD_JAVA
The value of this constant is "build.java".
"build.java"
public static final String SECTION_BUILD_MAVEN
The value of this constant is "build.maven".
"build.maven"
public static final String SECTION_BUILD_MISC
The value of this constant is "build.misc".
"build.misc"
public static final String SECTION_PROJECT
The value of this constant is "project".
"project"
public static final String PROP_NAME_SCM_URL
The value of this constant is "build.scmRevision.url".
"build.scmRevision.url"
public static final String PROP_NAME_SCM_REVISION_ID
The value of this constant is "build.scmRevision.id".
"build.scmRevision.id"
public static final String PROP_NAME_SCM_REVISION_DATE
The value of this constant is "build.scmRevision.date".
"build.scmRevision.date"
public static final String PROP_NAME_SCM_LOCALLY_MODIFIED
The value of this constant is "build.scmLocallyModified".
"build.scmLocallyModified"
public static final String PROP_NAME_SCM_LOCALLY_MODIFIED_FILES
The value of this constant is "build.scmLocallyModified.files".
"build.scmLocallyModified.files"
public static final String PROP_NAME_BUILD_DATE
The value of this constant is "build.date".
"build.date"
public static final String PROP_NAME_BUILD_TIMESTAMP
The value of this constant is "build.timestamp.millis".
"build.timestamp.millis"
public static final String PROP_NAME_BUILD_DATE_PATTERN
The value of this constant is "build.date.pattern".
"build.date.pattern"
public static final String PROP_NAME_GROUP_ID
The value of this constant is "build.groupId".
"build.groupId"
public static final String PROP_NAME_ARTIFACT_ID
The value of this constant is "build.artifactId".
"build.artifactId"
public static final String PROP_NAME_VERSION
The value of this constant is "build.version".
"build.version"
public static final String PROP_NAME_FULL_VERSION
The value of this constant is "build.version.full".
"build.version.full"
public static final String PROP_NAME_BUILD_YEAR
The value of this constant is "build.year".
"build.year"
public static final String PROP_NAME_BUILD_DURATION
The value of this constant is "build.duration".
"build.duration"
public static final String PROP_NAME_COPYRIGHT_YEAR
The value of this constant is "build.copyright.year".
"build.copyright.year"
public static final String DEFAULT_DATE_PATTERN
The value of this constant is "dd.MM.yyyy".
"dd.MM.yyyy"
public static final String PROP_NAME_BUILD_USER
user.name
.
The value of this constant is "build.user".
"build.user"
public static final String PROP_NAME_HOSTNAME
The value of this constant is "build.host.name".
"build.host.name"
public static final String PROP_NAME_OS_NAME
The value of this constant is "build.os.name".
"build.os.name"
public static final String PROP_NAME_OS_ARCH
The value of this constant is "build.os.arch".
"build.os.arch"
public static final String PROP_NAME_OS_VERSION
The value of this constant is "build.os.version".
"build.os.version"
public static final String PROP_NAME_JAVA_RUNTIME_NAME
The value of this constant is "build.java.runtime.name".
"build.java.runtime.name"
public static final String PROP_NAME_JAVA_RUNTIME_VERSION
The value of this constant is "build.java.runtime.version".
"build.java.runtime.version"
public static final String PROP_NAME_JAVA_VENDOR
The value of this constant is "build.java.vendor".
"build.java.vendor"
public static final String PROP_NAME_JAVA_VM
The value of this constant is "build.java.vm".
"build.java.vm"
public static final String PROP_NAME_JAVA_COMPILER
The value of this constant is "build.java.compiler".
"build.java.compiler"
public static final String PROP_NAME_MAVEN_VERSION
The value of this constant is "build.maven.version".
"build.maven.version"
public static final String PROP_NAME_MAVEN_GOALS
The value of this constant is "build.maven.execution.goals".
"build.maven.execution.goals"
public static final String PROP_NAME_MAVEN_CMDLINE
The value of this constant is "build.maven.execution.cmdline".
"build.maven.execution.cmdline"
public static final String PROP_NAME_MAVEN_OPTS
The value of this constant is "build.maven.execution.opts".
"build.maven.execution.opts"
public static final String PROP_NAME_JAVA_OPTS
The value of this constant is "build.maven.execution.java.opts".
"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".
"build.maven.execution.isRoot"
public static final String PROP_NAME_MAVEN_EXECUTION_PROJECT
The value of this constant is "build.maven.execution.project".
"build.maven.execution.project"
public static final String PROP_NAME_MAVEN_FILTERS
The value of this constant is "build.maven.execution.filters".
"build.maven.execution.filters"
public static final String MAVEN_EXECUTION_PROPERTIES_PREFIX
The value of this constant is "execution.property".
"execution.property"
public static final String PROP_NAME_MAVEN_ACTIVE_PROFILES
The value of this constant is "build.maven.execution.profiles.active".
"build.maven.execution.profiles.active"
public static final String MAVEN_ACTIVE_PROFILE_PREFIX
The value of this constant is "build.maven.execution.profile.active".
"build.maven.execution.profile.active"
public static final String PROP_NAME_PROJECT_HOMEPAGE
The value of this constant is "project.page.home.url".
"project.page.home.url"
public static final String PROP_NAME_PROJECT_OPS
The value of this constant is "project.page.ops.url".
"project.page.ops.url"
public static final String PROP_NAME_PROJECT_CATEGORY
The value of this constant is "project.category".
"project.category"
public static final String PROP_NAME_PROJECT_SUBCATEGORY
The value of this constant is "project.subcategory".
"project.subcategory"
public static final String PROP_NAME_PROJECT_TAGS
The value of this constant is "project.tags".
"project.tags"
public static final List<Constant.Section> REPORT_PROPERTIES
public static final Set<String> STANDARD_PROPERTIES
Method Detail |
---|
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.
public static String prettifyFilesValue(Object value)
value
- the object whose string representation is to be prettified.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |