Package org.eclipse.tycho.buildversion
Class DefaultBuildTimestampProvider
- java.lang.Object
-
- org.eclipse.tycho.buildversion.DefaultBuildTimestampProvider
-
- All Implemented Interfaces:
BuildTimestampProvider
@Component(role=BuildTimestampProvider.class, hint="default") public class DefaultBuildTimestampProvider extends java.lang.Object implements BuildTimestampProvider
Build timestamp provider that returns the same timestamp for all projects, the ${maven.build.timestamp}.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String
ROLE_HINT
-
Constructor Summary
Constructors Constructor Description DefaultBuildTimestampProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getTimestamp(org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.apache.maven.plugin.MojoExecution execution)
Returns build timestamp of the current project.
-
-
-
Field Detail
-
ROLE_HINT
static final java.lang.String ROLE_HINT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTimestamp
public java.util.Date getTimestamp(org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.apache.maven.plugin.MojoExecution execution)
Description copied from interface:BuildTimestampProvider
Returns build timestamp of the current project.- Specified by:
getTimestamp
in interfaceBuildTimestampProvider
-
-