2011-09-12 60 views

回答

1

我还没有试过这个,但有一个ant.propertyFile task。你可能可以做类似...

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