Package org.pentaho.platform.util
Class VersionHelper
- java.lang.Object
-
- org.pentaho.platform.util.VersionHelper
-
- All Implemented Interfaces:
org.pentaho.platform.api.util.IVersionHelper
public class VersionHelper extends Object implements org.pentaho.platform.api.util.IVersionHelper
-
-
Constructor Summary
Constructors Constructor Description VersionHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static VersionInfo
createVersionInfo()
Extracts the version information data from thebuild-res/version.properties
file found in the source directory.protected static VersionInfo
createVersionInfo(Manifest manifest)
Extracts the version information data from the manifest's attributes and puts them into a VersionInfo instance.static VersionInfo
getVersionInfo()
static VersionInfo
getVersionInfo(Class clazz)
protected static VersionInfo
getVersionInfoFromProperties(ResourceBundle assemblyBundle)
String
getVersionInformation()
String
getVersionInformation(Class clazz)
String
getVersionInformationFromProperties(ResourceBundle assemblyBundle)
-
-
-
Method Detail
-
getVersionInformation
public String getVersionInformation()
- Specified by:
getVersionInformation
in interfaceorg.pentaho.platform.api.util.IVersionHelper
-
getVersionInformation
public String getVersionInformation(Class clazz)
- Specified by:
getVersionInformation
in interfaceorg.pentaho.platform.api.util.IVersionHelper
-
getVersionInformationFromProperties
public String getVersionInformationFromProperties(ResourceBundle assemblyBundle)
-
getVersionInfo
public static VersionInfo getVersionInfo()
-
getVersionInfo
public static VersionInfo getVersionInfo(Class clazz)
-
createVersionInfo
protected static VersionInfo createVersionInfo(Manifest manifest)
Extracts the version information data from the manifest's attributes and puts them into a VersionInfo instance.- Parameters:
manifest
- the manifest information- Returns:
- the version information from the manifest
-
createVersionInfo
protected static VersionInfo createVersionInfo()
Extracts the version information data from thebuild-res/version.properties
file found in the source directory.- Returns:
- the version information from the
build-res/version.properties
file
-
getVersionInfoFromProperties
protected static VersionInfo getVersionInfoFromProperties(ResourceBundle assemblyBundle)
-
-