This content has been marked as final.
Show 1 reply
-
1. Re: Need to read from a file outside the EAR, but not from the default jboss.server.data.dir
ybxiang.china Jul 30, 2013 3:58 AM (in response to streety)define your URI in system properties in standalone.xml.
Here is an example:
<server xmlns="urn:jboss:domain:1.4">
<extensions>
...
</extensions>
<system-properties>
...
<property name="ybxiang.forum.backrest.script.path" value="D:\\develop\\projects\\javaarm\\backup_all.bat"/>
...
Now you can get it by java code:
System.getProperty("ybxiang.forum.backrest.script.path");
You can change "ybxiang.forum.backrest.script.path"'s value at any time.