0
votes

I have following task in my build script.

<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>

I run this build script from my mac machine. It gives the following error.

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.

I already download the ant-contrib-0.3.jar and copied it to ANT_HOME/lib directory where ANT_HOME is /usr/share/ant.

When I search the web here they have asked to use ant-contrib-version.jar as well by building the jar by ourselves using the source. But I could not run the ant script in that source since it throwing some errors.

Can some one guide me to solve this issue.

1

1 Answers

4
votes

ant-contrib-0.3.jar is a pretty ancient version of Ant-Contrib. The <post> task doesn't exist in it.

Instead, you'll find <post> in the latest version of Ant-Contrib: ant-contrib-1.0b3