Closed tobiasheine closed 6 years ago
Currently it's kinda hard to check whether the Entries contain a certain key.
Entries
key
Possible workarounds are:
if (buildProperties.cli['key'].or('none').string != 'none') { ... }
or
buildProperties.cli.keys.toList().contains('key')
But ideally we would expose BuildProperties.contains(String key):
BuildProperties.contains(String key)
if (buildProperties.cli.contains('key')) { ... }
Currently it's kinda hard to check whether the
Entries
contain a certainkey
.Possible workarounds are:
or
But ideally we would expose
BuildProperties.contains(String key)
: