开发者

how to change project name by grails custom script

开发者 https://www.devze.com 2023-04-04 19:02 出处:网络
I want to write a script to change grails project\'s name. need to modif开发者_运维技巧y: .project :Vote-> NewName

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

精彩评论

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

关注公众号