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:
- .project : Vote -> NewName
- 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')
}
)
精彩评论