Configuration: I'm running stock Fedora 12 with the ant that Fedora ships:
- ant-1.7.1-12.fc12
- java-1.6.0-openjdk-1.6.0.0-33.b16.fc12
I have svnant.jar
and svnClientAdapter.jar
in my $HOME/.ant/lib/
I'm using the following build.xml
:
<project name="antlibtest" default="doEcho">
<taskdef resource="svntask.properties"/>
<target name="doEcho">
<echo message="Hello World!"/>
<echo message="ANT_HOME=${ant.home}"/>
<echo message="classpath=${java.class.path}"/>
</target>
</project>
When the build file is executed, I get the following error: [taskdef] Could not load definitions from resource svntask.properties. It could not be found.
If I set ANT_HOME to /usr/share/ant/
it works flawlessly.
In both cases, the jars from my home directory are clearly in the output of the classpath.
How do I make this work without resorting to my own copy of ant, ANT_HOME and ant --noconfig?