ant

How to install ant contrib under Windows?


Prelude: Ant-Contrib provides a very well explained wiki page for installation and launch ([http://ant-contrib.sourceforge.net/#install][1]).

Indeed, only two steps is necessary: - build ant-contrib-0.3.jar (by ant dist...), - move the built .jar into the lib directory of your Ant installation,

Use it by writing in your own project:

<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>

My problem: I succeeded to build the .jar (build successful is written). But I cannot find any "antcontrib.properties" in the jar built!

Request: What is the important thing I have forgotten? Is it better to search any ant-contrib-0.3.jar already built? Thanks


Solution

  • If you download this file http://www.java2s.com/Code/JarDownload/ant-contrib-0.6.jar.zip, there's a antcontrib.properties contained. So maybe the installation instructions or the ant build file is out of date. Have you tried to use Maven for building the Ant-Contrib?