simonz wrote > > There is no Ant.replace api. How could i achieve my goal? >
You got the syntax for calling Ant tasks wrong. Instead of '=', you have to use ':'. Anyway, it would be better to use the filtering capabilities offered by the processResources task (which is of type Copy). See the documentation (DSL reference, user guide, forum at http://forums.gradle.org) for more information. simonz wrote > > Another issue is that i have to change "[APP.NAME]" in context.xml to > "@[APP.NAME]@". Is there anyway to do arbitrary token replacement without > adding "@"? > I guess you are saying that you had to do this with the Ant build. There are ways, both in Ant and in Gradle, to replace arbitrary strings. Again see the documentation. -- Peter Niederwieser Principal Engineer, Gradleware http://gradleware.com Creator, Spock Framework http://spockframework.org Twitter: @pniederw -- View this message in context: http://gradle.1045684.n5.nabble.com/simple-token-replacement-in-gradle-tp5158831p5159134.html Sent from the gradle-user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
