New ant task marked as error, how to fix/avoid it?
hello!
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">
<ivy:retrieve/>
</target>
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.
请先登录再写评论。
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"
uri="antlib:org.apache.ivy.ant">
<classpath>
<fileset dir="${ivy.jar.dir}" includes="*.jar"/>
</classpath>
</taskdef>
</target>