New ant task marked as error, how to fix/avoid it?

Idea 10.0.1
I use IVY and additional task on Ant build scripts.
So I define additional namespace xmlns:ivy="antlib:org.apache.ivy.ant"

<project name="hello-ivy" default="run" xmlns:ivy="antlib:org.apache.ivy.ant">
but my additional task marked red as error:

    <target name="resolve" description="--> retreive dependencies with ivy">

How I can avoid this, this is really annoy me.

I try register xmlns:ivy="antlib:org.apache.ivy.ant"m but apache no xsd provided,
try to add ivy.jar in classpath of IDEA,
But no luck.

1 comment
Comment actions Permalink

I found how to fix it -need define additional property and tasks in ant build

        <property name="ivy.jar.dir" value="C:/Program Files/Apache Software Foundation/apache-ivy-2.2.0/"/>

        <target name="load-ivy">
                <taskdef resource="org/apache/ivy/ant/antlib.xml"
                                <fileset dir="${ivy.jar.dir}" includes="*.jar"/>


Please sign in to leave a comment.