Package org.panda_lang.pandomium.util
Class JarUtils
java.lang.Object
org.panda_lang.pandomium.util.JarUtils
public class JarUtils extends Object
- Author:
- Osiris-Team
-
Constructor Summary
Constructors Constructor Description JarUtils() -
Method Summary
Modifier and Type Method Description PropertiesgetPandoniumPropertiesFromJar(String path)PropertiesgetPropertiesFromJar(String path, String propertiesFileName)This creates an URLClassLoader so we can access the autoplug.properties file inside the jar and then returns the properties file.PropertiesgetThisJarsPandoniumProperties()StringgetVersion()
-
Constructor Details
-
JarUtils
public JarUtils()
-
-
Method Details
-
getVersion
- Throws:
Exception
-
getThisJarsPandoniumProperties
- Throws:
Exception
-
getPandoniumPropertiesFromJar
- Throws:
Exception
-
getPropertiesFromJar
@NotNull public Properties getPropertiesFromJar(@NotNull String path, String propertiesFileName) throws ExceptionThis creates an URLClassLoader so we can access the autoplug.properties file inside the jar and then returns the properties file.- Parameters:
path- The jars pathpropertiesFileName- Properties file name without its .properties extension.- Returns:
- autoplug.properties
- Throws:
Exception
-