I got a very simple doLast action inside an Exec task that looks like this
ant.replace("dir": destinationDir, "value": tokenValue, token: "@@MYTOKEN")
Running the first time (after clean) I get an error
org.apache.tools.ant.taskdefs.ExecTask cannot be cast to org.apache.tools.ant.UnknownElement
Subsequent runs (also when not up-to-date) run fine.
Does anyone know where this error comes from (or why it only happens on the very first run) ?
Its gradle 2.4 on win7 64bit, jdk 7 64bit.