How to include ant-contrib.jar dynamically in Ant
问题 I\'m looking for a way to include a .jar from within an Ant file so I can use it straight away and call its methods in my targets. In my case it\'s ant-contrib-1.0b3.jar . 回答1: The best way is to put the Ant-Contrib jarfile inside you project. For example, let's say the build.xml is in the root of your project. Create a directory called ant.lib\ant-contrib inside your project, then put the ant-contrib*.jar in this folder. You can use this method for other optional Ant tasks that you might