public class VersionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
convertToLocalTimeString(FileTime fileTime,
ZoneId timezone)
Return a string denoting the provided time in the provided timezone
|
static FileTime |
getCreationDate(Class clazz)
Retrieve the creation date from the file information
|
static String |
getVersion(Class clazz)
Retrieve version information from the manifest or alternatively from the fileName (if it's a jar)
Note that version information in the manifest is only available if the class/jar file was build with certain
Maven settings (see also http://stackoverflow.com/questions/2712970/get-maven-artifact-version-at-runtime#2713013)
|
public static String getVersion(Class clazz)
clazz - public static FileTime getCreationDate(Class clazz) throws IOException, URISyntaxException
clazz - IOExceptionURISyntaxExceptionCopyright © 2018 Europeana Foundation. All rights reserved.