How can I call the ant freemarker fmpp task from within my build.gradle? Has anyone tried this? In a build.xml you would do -
<fmpp sourceFile="templates/blah.ftl" outputFile="output/blah.xml">
<data expandProperties="yes">
ant: antProperties()
</data>
</fmpp>
I’ve declared a new task in gradle -
ant.taskdef(name: 'fmpp', classname:'fmpp.tools.AntTask') {
classpath {
fileset(dir: 'libs', includes: '*.jar')
}
}
so can use it via ant.fmpp() - however I can’t get it to recognise the dataloader for expanding ant properties using antProperties().
I need to get it working as follows -
ant.fmpp(sourceFile:"templates/blah.ftl", outputFile:"output/blah.xml") {
data(expandProperties:'yes') {
// how to get antProperties() working here?
}
}