Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting an error "Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found."

Tags:

I am getting an error Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found. when I am trying to ant build on eclipse. So I downloaded ant-contrib-0.6.jar and kept it in my /lib location of apache ant, but it still does not resolve my issue. I have also tried by specifying the /lib location in my CLASSPATH system variable. How can I get around this error?

like image 310
gauravhalbe Avatar asked Mar 08 '13 23:03

gauravhalbe


1 Answers

You can provide full path to the ant-contrib JAR explicitly using "classpath" element:

<taskdef resource="net/sf/antcontrib/antlib.xml">   <classpath>     <pathelement location="${path-to-ant-contrib}/ant-contrib-1.0b3.jar"/>   </classpath> </taskdef> 

EDIT: Link contributed by Djacomo:

  • http://ant-contrib.sourceforge.net/
like image 192
Boris Brodski Avatar answered Sep 21 '22 10:09

Boris Brodski