

If you want to use one of the tasks in your own project, add the lines Keep ant-contrib-0.3.jar in a separate location. Now Ivy has been added to the classpath of the Ant distribution embedded in Eclipse.Ĭreate an Ant build file and declare the Ivy targets with:Īnd don't forgot to declare the namespace xmlns:ivy="antlib:". How to include Ant-Contrib jar To install ant-contrib: Copy ant-contrib-0.3.jar to the lib directory of your Ant installation. Then browse your filesystem to the plugins directory of your Eclipse installation and select the Ivy jar named _2.X.X.XXXXXXXXX.jar. In the global preference page of the Ant runtime, click on Add External JARs. If you want to install your custom version of Ivy, you'll need to do it manually. Go check the IvyDE updatesite and install the plugin named "Apache Ivy Ant Tasks" Since IvyDE 2.2, a dedicated plugin can be install so that Ivy Ant tasks are automatically added to Ant's classpath. You may wish to run Ivy targets against Eclipse's Ant distribution. The provided Apache Ant distribution is a standard distribution of Ant that doesn't include Apache Ivy. Most Eclipse distributions include a plugin to launch Apache Ant build files.
