Package de.prototypefund
Class JarFunctionality
- java.lang.Object
-
- de.prototypefund.JarFunctionality
-
public class JarFunctionality extends Object
Provides functionality by calling the JAR file. This class adds metadata the the JAR manifest. Metadata such as the libraries build date, version number and its main() method as starting method of the library. Providing all info by calling the JAR, e.g. via command line: "java -jar en16931-data-extractor--jar-with-dependencies.jar". Triggering the data extraction by: "java -jar en16931-data-extractor- -jar-with-dependencies.jar | ".
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getProjectBuildDate()
Return the date when the project had been buildstatic String
getProjectName()
Return the project namestatic String
getProjectTitle()
Returns the ODFDOM library titlestatic String
getProjectVersion()
Return the version of the librarystatic String
getProjectWebsite()
Return the website of the librarystatic void
main(String[] args)
The main method is meant to be called when the JAR is being executed, e.g.
-
-
-
Method Detail
-
main
public static void main(String[] args)
The main method is meant to be called when the JAR is being executed, e.g. "java -jar en16931-data-extractor--jar-with-dependencies.jar" and provides versioning information: en16931-data-extractor 1.0.0-SNAPSHOT (build 2019-01-20T19:29:17) from https://github.com/svanteschubert/en16931-data-extractor Allowing version access from the JAR without the need to unzip the JAR nor naming the JAR (requiring the change of classpath for every version due to JAR naming change).
-
getProjectName
public static String getProjectName()
Return the project name- Returns:
- the project name
-
getProjectTitle
public static String getProjectTitle()
Returns the ODFDOM library title- Returns:
- A string containing both the name and the version of the ODFDOM library.
-
getProjectVersion
public static String getProjectVersion()
Return the version of the library- Returns:
- the ODFDOM library version
-
getProjectWebsite
public static String getProjectWebsite()
Return the website of the library- Returns:
- the library website
-
getProjectBuildDate
public static String getProjectBuildDate()
Return the date when the project had been build- Returns:
- the date of the build formatted as "yyyy-MM-dd'T'HH:mm:ss".
-
-