Ant任务范围-名称未定义

Ant任务范围-名称未定义,ant,Ant,我读过这篇文章: 这个问题是关于财产的。我想知道如何在内部目标上制作可用于所有项目的 我不想在我的主要目标上定义它,因为它可能又长又丑。这就是为什么我喜欢把它分成内部目标。 我得到的错误是: Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <preset

我读过这篇文章:

这个问题是关于财产的。我想知道如何在内部目标上制作可用于所有项目的

我不想在我的主要目标上定义它,因为它可能又长又丑。这就是为什么我喜欢把它分成内部目标。 我得到的错误是:

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.
原因:名称未定义。
措施:检查拼写。
操作:检查是否已声明任何自定义任务/类型。
措施:检查是否发生了任何/声明。

您想调用定义属性的目标,并在调用者范围内使用该属性,对吗


您应该查看ant contrib的
RunTarget
:。

此错误似乎不完整。如果我是正确的,这是当您丢失属于第三方ANT任务的jar时得到的错误消息。