0

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

need to modify:

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

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

atian25
  • 4,166
  • 8
  • 37
  • 60

1 Answers1

1

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')
   }
)
Gregg
  • 34,973
  • 19
  • 109
  • 214