Home
TeamSite
Using ant-contrib
Azudio
Hi All,
I'm facing an issue getting an Apache ANT task to run using tasks from the ant-contrib library - unfortunately I'm not a massive ant guru so any help appreciated.
TS 6.7.2
JAVA_HOME=G:\iw-home\tools\java
Apache Ant version 1.6.5 compiled on June 2 2005
Detected Java version: 1.5 in: G:\iw-home\tools\java\jre
Detected OS: Windows 2003
The ant-contrib-1.0b3.jar is in G:\iw-home\tools\ant\lib and inside my script I am declaring the ant-contrib declaration:
<project name="assembly" default="create_distributable">
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
But when I run my script I get the following error:
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
Looks like a classpath issue but as far as I can tell its as it should be.
I've echoed out the classpath in one of the tasks and it seems to be there:
[echo] Classpath: G:\iw-home\tools\ant\bin\..\lib\ant-launcher.jar;
...[omitted]...
G:\iw-home\tools\ant\lib\ant-contrib-1.0b3.jar;
...[omitted]...
Thanks,
Adam.
antcontrib ant_contrib antlib.xml apacheant ant contrib
Find more posts tagged with
Comments
Azudio
After a fair amount of Googling found some posts suggesting that re-zipping the ant-contrib-1.0b3.jar as supplied by IW might help - well it seemed to fix the issue for me.
I have no explanation why that would work, if anyone would care to explain, but it did.
Adam.