开发者

how to change project name by grails custom script

I want to write a script to change grails project's name.

need to modif开发者_运维技巧y:

  1. .project : Vote -> NewName
  2. application.properties : app.name=AMP -> app.name=NewName

could anyone show me an example or link of match doc?


I haven't tried this, but there is an ant.propertyFile task. You might be able to do something like...

ant.propertyfile(
   file:"/projectPath/application.properties") {
      entry(key:"app.name", value:'foo')
   }
)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜