Package org.pentaho.di.version
Class BuildVersion
- java.lang.Object
-
- org.pentaho.di.version.BuildVersion
-
public class BuildVersion extends Object
Singleton class to allow us to see on which date & time the kettle3.jar was built.- Since:
- 2006-aug-12
- Author:
- Matt
-
-
Field Summary
Fields Modifier and Type Field Description protected static EnvironmentVariableGetterenvironmentVariableGetterstatic StringJAR_BUILD_DATE_FORMATstatic StringKETTLE_BUILD_DATEstatic StringKETTLE_BUILD_REVISIONstatic StringKETTLE_BUILD_USERstatic StringKETTLE_BUILD_VERSIONprotected static ManifestGettermanifestGetterstatic StringREFERENCE_FILE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBuildDate()DategetBuildDateAsLocalDate()StringgetBuildUser()static BuildVersiongetInstance()StringgetRevision()StringgetVersion()protected static voidrefreshInstance()voidsetBuildDate(String buildDate)voidsetBuildUser(String buildUser)voidsetRevision(String revision)voidsetVersion(String version)
-
-
-
Field Detail
-
REFERENCE_FILE
public static final String REFERENCE_FILE
- See Also:
- Constant Field Values
-
JAR_BUILD_DATE_FORMAT
public static final String JAR_BUILD_DATE_FORMAT
- See Also:
- Constant Field Values
-
KETTLE_BUILD_VERSION
public static final String KETTLE_BUILD_VERSION
- See Also:
- Constant Field Values
-
KETTLE_BUILD_REVISION
public static final String KETTLE_BUILD_REVISION
- See Also:
- Constant Field Values
-
KETTLE_BUILD_DATE
public static final String KETTLE_BUILD_DATE
- See Also:
- Constant Field Values
-
KETTLE_BUILD_USER
public static final String KETTLE_BUILD_USER
- See Also:
- Constant Field Values
-
manifestGetter
protected static ManifestGetter manifestGetter
-
environmentVariableGetter
protected static EnvironmentVariableGetter environmentVariableGetter
-
-
Method Detail
-
getInstance
public static final BuildVersion getInstance()
- Returns:
- the instance of the BuildVersion singleton
-
refreshInstance
protected static void refreshInstance()
-
getBuildDate
public String getBuildDate()
- Returns:
- the buildDate
-
getBuildDateAsLocalDate
public Date getBuildDateAsLocalDate()
-
setBuildDate
public void setBuildDate(String buildDate) throws KettleVersionException
- Parameters:
buildDate- the buildDate to set- Throws:
KettleVersionException
-
getVersion
public String getVersion()
- Returns:
- the version
-
setVersion
public void setVersion(String version)
- Parameters:
revision- the version to set
-
getRevision
public String getRevision()
- Returns:
- the revision
-
setRevision
public void setRevision(String revision)
- Parameters:
revision- the revision to set
-
getBuildUser
public String getBuildUser()
- Returns:
- the buildUser
-
setBuildUser
public void setBuildUser(String buildUser)
- Parameters:
buildUser- the buildUser to set
-
-