Hi, System.getEnv() should be used now directly in your bundles.
I will test it but pretty sure I’m using it in instance service. Regards JB > Le 30 août 2020 à 10:24, Steinar Bang <[email protected]> a écrit : > > Can System.getEnv() pick up environment variables set before starting > karaf? > > I know that environment variables can be picked up inside the config > files[1]. > > And I know System.getEnv() didn't work as expected inside > apache karaf[2], but is this still the case? > > Thanks! > > - Steinar > > References: > [1] <https://karaf.apache.org/manual/latest/#_files> > [2] > <http://karaf.922171.n3.nabble.com/Get-environment-variable-td4025807.html> > > >
