de.smartics.maven.plugin.buildmetadata
Class BuildPointMojo

Package class diagram package BuildPointMojo
java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by de.smartics.maven.plugin.buildmetadata.AbstractBuildMojo
          extended by de.smartics.maven.plugin.buildmetadata.BuildPointMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public final class BuildPointMojo
     
     
extends AbstractBuildMojo

Adds the build time to the properties file and runs all providers flagged with Provider.RUN_AT_BUILD_POINT .

Since:
1.0
maven-goal:
build-point
maven-phase:
prepare-package
maven-requiresProject:
maven-description:
Provides the duration of the build at the given point to the build properties and runs all providers flagged with 'runAtBuildPoint' with a value of 'true'. The mojo is run at the specified point. Note that dependent on the phase, the build information (such as the duration of the build) may or may not packaged with the artifacts.

Field Summary
static String TMP_BUILD_END
          Constant to store the current time stamp.
 
Fields inherited from class de.smartics.maven.plugin.buildmetadata.AbstractBuildMojo
addToFilters, createXmlReport, project, properties, propertiesOutputFile, propertyOutputFileMapping, providers, runtime, session, xmlOutputFile
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
BuildPointMojo()
           
 
Method Summary
 void execute()
          
 
Methods inherited from class de.smartics.maven.plugin.buildmetadata.AbstractBuildMojo
getProject, provideBuildMetaData, setProject, setPropertiesOutputFile, setSession, updateMavenEnvironment
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TMP_BUILD_END

public static final String TMP_BUILD_END
Constant to store the current time stamp. Must be removed before the build properties are written to the project.

The value of this constant is "build.tmp.timestamp".

Constant Field Value:
"build.tmp.timestamp"
Constructor Detail

BuildPointMojo

public BuildPointMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException,
                    MojoFailureException

Specified by:
execute in interface Mojo
Overrides:
execute in class AbstractBuildMojo
Throws:
MojoExecutionException
MojoFailureException


Copyright © 2006-2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.