Hi Gualtiero,
This is natively supported by the commons-configuration library we use
for XML / properties parsing.
Try <prop>${env:MY_ENV_VARIABLE}</prop>
You can read:
https://commons.apache.org/proper/commons-configuration/userguide/howto_basicfeatures.html
(Variable Interpolation)
Best regards,
Benoit
On 02/09/2019 21:05, Gualtiero Testa wrote:
> Hi,
>
> I would like to use environment variables to partially change the James
> configuration.
>
> My use case it to create a Docker image and use environment variable to
> influence some parameters in the config XML files, depending on the
> execution environment.
>
> For example I would like to change the "postmaster" address in the
> mailet-container.xml file.
>
> Is there a way to do it?
>
> Thanks,
>
> Gualtiero
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]