Ant可以用length来判断某个文件是否为空。
具体用法:
<length file="/filepath/isFinished.txt" property="isFinished.size"/>
<echo>${isFinished.size}</echo>
如果打印结果为0,就这么文件为空了。
Ant可以用length来判断某个文件是否为空。
具体用法:
<length file="/filepath/isFinished.txt" property="isFinished.size"/>
<echo>${isFinished.size}</echo>
如果打印结果为0,就这么文件为空了。