Domanda

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?

È stato utile?

Soluzione

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."

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top