title: How to read messages from message.properties in config.groovy
body: <p>I dont want to hardcode the 'training.defaultStartTime' value in config.groovy Instead I have to read it from message.properties, The result will be like this</p>
  
  <p>In <strong>message.properties</strong></p>
  
  <pre><code>dev.training.defaultStartTime = 09:00
  prod.training.defaultStartTime = 10:00
  </code></pre>
  
  <p>In <strong>config.groovy</strong></p>
  
  <pre><code>  environments {
          development {
              training.defaultStartTime = message of  code 'dev.training.defaultStartTime' in message.properties 
  
          }
          production {
              training.defaultStartTime = message of code 'prod.training.defaultStartTime' in message.properties 
          }
      }
  </code></pre>