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()The folder containing the ServerPackCreator.exe or JAR-file. final FilegetJarFile()The .exe or JAR-file of ServerPackCreator. final PathgetJarPath()The path to the JAR-file or . final StringgetJarFileName()The name of the .exe or JAR-file. final StringgetJavaVersion()The Java version used to run ServerPackCreator. final StringgetOsArch()Architecture of the operating system on which ServerPackCreator is running on. final StringgetOsName()The name of the operating system on which ServerPackCreator is running on. final StringgetOsVersion()The version of the OS on which ServerPackCreator is running on. final BooleanisExe()Whether a .exe or JAR-file was used for running ServerPackCreator. -
-
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()
The folder containing the ServerPackCreator.exe or JAR-file.
-
getJarFile
final File getJarFile()
The .exe or JAR-file of ServerPackCreator.
-
getJarPath
final Path getJarPath()
The path to the JAR-file or .exe of ServerPackCreator
-
getJarFileName
final String getJarFileName()
The name of the .exe or JAR-file.
-
getJavaVersion
final String getJavaVersion()
The Java version used to run ServerPackCreator.
-
getOsArch
final String getOsArch()
Architecture of the operating system on which ServerPackCreator is running on.
-
getOsName
final String getOsName()
The name of the operating system on which ServerPackCreator is running on.
-
getOsVersion
final String getOsVersion()
The version of the OS on which ServerPackCreator is running on.
-
-
-
-