Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I would assume if you have a directory in the class path that is evaluated before the jar is analyzed, it might? Easy enough to testbed.
-
donuts236724y@SortOfTested was wondering if there was a formal order. Like if cp is /etc/*; lib/*.jar
Then even though the jar has app.properties, it will use etc/app. Properties?
Yes I guess could do trial and error but was wondering if there's a formal doc. Not sure what to Google for this but whatever I searched don't find what I wanted. -
donuts236724y@stop like -Dapp.properties=x.properties?
getResources will return x assuming it's added to -cp x.propeties; ...
Actually yes I should just try it myself... But was wondering if there some formal doc that has the precedence order...
Related Rants
If I app.properties in src/resources in a jar.
And load it in code I guess using Classloader.getResource()?
Can I override it at runtime? By I guess adding a different file but with same name into the classpath?
question
java