Java ant contrib post任务不工作

Java ant contrib post任务不工作,java,ant,build,ant-contrib,Java,Ant,Build,Ant Contrib,我的构建脚本中有以下任务 <target name="upload" depends="init"> <taskdef resource="net/sf/antcontrib/antlib.xml"/> <post to="http://testapp.com/api/builds.format" verbose="true" wantresponse="true" maxwait="0"> <prop name="fi

我的构建脚本中有以下任务

<target name="upload" depends="init">
    <taskdef resource="net/sf/antcontrib/antlib.xml"/> 
    <post to="http://testapp.com/api/builds.format" verbose="true" wantresponse="true" maxwait="0">
        <prop name="file" value="./release/temp.ipa"/>
        <prop name="notes" value="release notes"/>
    </post>
</target>

我从我的mac电脑上运行这个构建脚本。它给出了以下错误

Problem: failed to create task or type post
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.
问题:无法创建任务或类型post
原因:名称未定义。
措施:检查拼写。
操作:检查是否已声明任何自定义任务/类型。
措施:检查是否发生了任何/声明。
我已经下载了ant-contrib-0.3.jar并将其复制到ant_HOME/lib目录,其中ant_HOME是/usr/share/ant

当我搜索web时,他们要求使用ant-contrib-version.jar,方法是自己使用源代码构建jar。但我无法在该源代码中运行ant脚本,因为它会抛出一些错误


有人能指导我解决这个问题吗。

ant-contrib-0.3.jar是ant-contrib的一个非常古老的版本。其中不存在
任务


相反,您可以在最新版本的Ant-Contrib中找到

Ant-Contrib-0.3.jar是Ant-Contrib的一个非常古老的版本。其中不存在
任务

相反,您可以在最新版本的Ant Contrib中找到

另请参见:另请参见: