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 VersionInfocreateVersionInfo()Extracts the version information data from thebuild-res/version.propertiesfile found in the source directory.protected static VersionInfocreateVersionInfo(Manifest manifest)Extracts the version information data from the manifest's attributes and puts them into a VersionInfo instance.static VersionInfogetVersionInfo()static VersionInfogetVersionInfo(Class clazz)protected static VersionInfogetVersionInfoFromProperties(ResourceBundle assemblyBundle)StringgetVersionInformation()StringgetVersionInformation(Class clazz)StringgetVersionInformationFromProperties(ResourceBundle assemblyBundle)
-
-
-
Method Detail
-
getVersionInformation
public String getVersionInformation()
- Specified by:
getVersionInformationin interfaceorg.pentaho.platform.api.util.IVersionHelper
-
getVersionInformation
public String getVersionInformation(Class clazz)
- Specified by:
getVersionInformationin 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.propertiesfile found in the source directory.- Returns:
- the version information from the
build-res/version.propertiesfile
-
getVersionInfoFromProperties
protected static VersionInfo getVersionInfoFromProperties(ResourceBundle assemblyBundle)
-
-