Вопрос

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?

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top