title: What is the best way to modify a project configuration from within a plugin?
body: <p>As I am trying to write a Grails Plugin, I stumbled upon two problems:</p>
  
  <ul>
  <li>how do I modify one of the configuration files like <code>Config.groovy</code> or <code>DataSource.groovy</code> from witin the <code>_install.groovy</code>  script? It is easy to append something to those files, but how do I modify it in a clean way? <code>text.replaceAll()</code>? Or should I create a new config file?</li>
  <li>how do I get the name of the current application into which the plugin will be installed? I tried to use <code>app.name</code> and <code>appName</code> but both do not work.</li>
  </ul>
  
  <p>Is there maybe somewhere a good tutorial on creating plugins which I haven't found yet?</p>