-
1. Re: Retrieving Path Information
mayerw01 Jul 27, 2016 6:16 AM (in response to jfisherdev)What you can do is register your directory as a System property like
/system-property=custDirectory:add(value=${jboss.home.dir}/custom/extras)
and then retrieve the path via System.getProperty("custDirectory");
-
2. Re: Retrieving Path Information
jfisherdev Jul 28, 2016 1:35 PM (in response to mayerw01)I think the suggested solution will work.
Thank you.
-
3. Re: Retrieving Path Information
roadsurfer Sep 19, 2016 7:17 AM (in response to jfisherdev)I too have been trying to figure this out, am I to conclude from this that the "Paths" feature of WildFly is broken? i.e. you can only add paths OK, but there is no way to retrieve them at runtime.
-
4. Re: Retrieving Path Information
ctomc Sep 19, 2016 8:28 AM (in response to roadsurfer)J I wrote:
I too have been trying to figure this out, am I to conclude from this that the "Paths" feature of WildFly is broken? i.e. you can only add paths OK, but there is no way to retrieve them at runtime.
You can conclude whatever you want. But fact is that path manager and its "paths" configuration in standalone.xml have noting to do with java.nio.Path and are for internal resolution of paths which is only useful with subsystems and not user code.
-
5. Re: Retrieving Path Information
roadsurfer Sep 19, 2016 8:59 AM (in response to ctomc)OK, thanks. I had hope to be able to use that feature to make some configuration easier, wasn't clea rot me from the documentation that it was more for subsystem-only use.
I guess I will simply find another way to do it.