This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private InputStream readProperties() throws IOException { | |
| File jarPath = new File(Main.class.getProtectionDomain().getCodeSource().getLocation().getPath()); | |
| JarFile jarFile = new JarFile(jarPath); | |
| JarEntry entry = jarFile.getJarEntry("PROPERTY_NAME"); | |
| InputStream input = jarFile.getInputStream(entry); | |
| return input; | |
| } |