Installing ANT contrib for Eclipse

Warning: Illegal string offset 'language' in /var/www/vhosts/ on line 510 Warning: ksort() expects parameter 1 to be array, string given in /var/www/vhosts/ on line 513

A quick step by step guide to installing ANT-contrib for Eclipse (on Windows).

  1. Download ANT-contrib:
  2. Extract the zip to your harddrive, I extracted it to C:/ant-contrib/
  3. Include ANT-contrib in your ANT build file, so you don’t have to set it up every time you create a new project. (See XML below)
  4. All done!

Additional XML in ANT build script:

  1. <taskdef resource="net/sf/antcontrib/">
  2. <classpath>
  3. <pathelement location="[full path to ant-contrib jar]"/>
  4. </classpath>
  5. </taskdef>


Leave a Reply

Your email address will not be published. Required fields are marked *