You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Andrew Holland <ah...@a1dutch.co.uk> on 2016/08/02 22:32:53 UTC

Maven expression default values

Hi,

I would like to add support for default values within expressions, i think this would be really powerful and would remove the need for messy configuration.

It works the same way as spring property default values, e.g.

${some.property:default}
${env.SOME_VAR:default}

It should also work with nesting, e.g.

${some.property:${env.SOME_VAR:default}}

I could submit a pull request if there is some interest in getting this merged?

Cheers

Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org