在我的 ant 中执行此操作时出现错误,我不明白为什么 ant 无法识别任务类路径:
<?xml version="1.0"?>
<project default="task">
<target name="task">
<classpath>
<pathelement path="." />
</classpath>
</target>
</project>
我有错误消息:
task:
BUILD FAILED
C:\way\build.xml:6: Problem: failed to create task or type classpath
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
有人知道错误来自哪里吗?