我正在接线grails插件。在_Install
期间,我想添加插件的Config.groovy
的一部分。我要剪切并附加的块以
// **** PLUGINSTART
并以
// **** PLUGINEND
我现在正在使用
ant.copy
,并用插件的Config.groovy
完全替换Config.groovy
。如何仅追加这部分?
最佳答案
看一看Externalized Configuration,特别是以下行:
"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."
关于grails - 在grails _Install任务期间要追加文本文件的一部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19006237/