gradle/ant 输出日志到文件
- 使用
<record>
标签:
ant
...
<compile >
<record name="log.txt" action="start"/>
<javac ...
<record name="log.txt" action="stop"/>
<compile/>
...
gradle
ant {
...
record(name: "log.txt", action: "start")
//do soemthing with log
record(name: "log.txt", action: "stop")
...
}
详细用法见官方文档