Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
Will was leichtgewichtiges haben ... Fett bin ich selbst schon genug.Properties-Datei per File nachladen, oder besser.. .
org.jboss.system.server.ServerConfig sc = org.jboss.system.server.ServerConfigLocator.locate();
return sc.getServerDataDir().getAbsolutePath();
InputStream is = ...
Properties p = new Properties();
p.load(is);
InputStream is = ...
File f = new File("./conf/myprops.properties"); // einfaches relatives Beispiel
//File f = new File(sc.getServerDataDir().getAbsolutePath(), "myprops.properties"); // einfaches jBoss-Beispiel
InputStream is = null;
Properties p = new Properties();
try {
is = new FileInputStream(f);
p.load(is);
// System.getProperties().putAll(p); // Beispiel um die Props als Systemprops anzulegen
} catch (IOException e) {
throw e;
} finally {
if (is != null) {
is.close();
}
}
File f = new File("./conf/myprops.properties"); // einfaches relatives Beispiel