Question

I'm wiring grails plugin. During _Install I would like to append the part of my plugin'sConfig.groovy. The block I'd like to cut and append starts with

// **** PLUGINSTART

and ends with

// **** PLUGINEND

Curently I'm using ant.copy and completely replace the Config.groovy with my plugin's Config.groovy. How to append only this part?

Was it helpful?

Solution

Have a look at Externalized Configuration, particularly the line:

"This can be useful in situations where the config is either coming from a plugin or some other part of your application. A typical use for this is re-using configuration provided by plugins across multiple applications."

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top