Class JarInformation
-
- All Implemented Interfaces:
public final class JarInformationStores values gathered by JarUtilities.jarInformation for easy access. Values stored and provided by this class are:
The directory in which the exe or JAR reside in
The file used to start ServerPackCreator. Either an exe or a JAR
The filename of the exe or JAR
The Java version with which ServerPackCreator is being used
The operating systems' architecture
The operating systems' name
The operating systems' version
Whether an exe is being used for running ServerPackCreator
-
-
Field Summary
Fields Modifier and Type Field Description private final FilejarFolderprivate final FilejarFileprivate final PathjarPathprivate final StringjarFileNameprivate final StringjavaVersionprivate final StringosArchprivate final StringosNameprivate final StringosVersionprivate final BooleanisExe
-
Constructor Summary
Constructors Constructor Description JarInformation(Class<?> clazz)
-
Method Summary
Modifier and Type Method Description final FilegetJarFolder()final FilegetJarFile()final PathgetJarPath()final StringgetJarFileName()final StringgetJavaVersion()final StringgetOsArch()final StringgetOsName()final StringgetOsVersion()final BooleanisExe()-
-
Constructor Detail
-
JarInformation
JarInformation(Class<?> clazz)
- Parameters:
clazz- The class from which to acquire information about the containing JAR-file and general location.
-
-
Method Detail
-
getJarFolder
final File getJarFolder()
-
getJarFile
final File getJarFile()
-
getJarPath
final Path getJarPath()
-
getJarFileName
final String getJarFileName()
-
getJavaVersion
final String getJavaVersion()
-
getOsVersion
final String getOsVersion()
-
-
-
-