Hi Phil, by default this should be the case since the SystemPropertiesPropertySource has higher ordinal than the JavaConfigurationPropertySoiurce (names could be different)...
With 3.0-incubating environment properties by default also override system properties, since this is the default mechanism used for docker container configuration. More options to think about when combining with Kubernetes features such as secrets and configmaps... J Anatole 2017-05-31 0:37 GMT+02:00 P. Ottlinger <[email protected]>: > Hi, > > my pet project is an executable JAR that uses tamaya to read its > configuration from a properties file. > > Due to the fact that this property file is in a shaded JAR I'd ike to > override certain properties (=paths to data files needed in the > application). > > If my javaconfiguration.properties file contains > foopath=/foo/bar.csv > can I override it via a -Dfoopath=mypath/bar.csv when running my FatJAR? > or does this functionality not yet exist? > > Due to build problems on Travis I'm still with 0.2-incubating. > > Thanks for a hint ;-) > > Phil > -- *Anatole Tresch* PPMC Member Apache Tamaya JCP Star Spec Lead *Switzerland, Europe Zurich, GMT+1* *maketechsimple.wordpress.com <http://maketechsimple.wordpress.com/> * *Twitter: @atsticks, @tamayaconf* [image: GeeCON] [image: JSD_Speaker_2017]
