title: Grails: How to change appname in application.properties
body: <p>How to change <code>app.name</code> for a <code>groovy grails</code> application? I have a default value configured in <code>application.properties</code> metadata file. </p>
  
  <p>I am using grails 2.1.1 version. I have tried using <code>Metadata</code> class to change the app.name, but failed to set value.</p>
  
  <p>And I also tried setProperty("app.name", "myapp") in <code>BuildConfig.groovy</code> file. But it did not work. </p>
  
  <p>Both scenarios uses the default value which is in <code>application.properties</code> file. </p>
  
  <p>To stream line, I wanted to configure <code>app.name</code> in an external file. and overwrite at run time. Please let me know how can I do this? </p>
  
  <p>Any help is appreciated.</p>