[fedora-java] Why does ant ignore tasks in ~/.ant/lib ?

Aaron Clark ophidian at ophidian.homeip.net
Wed Dec 9 20:30:31 UTC 2009


So, I've been trying to track down why a simple taskdef in my build.xml 
fails to find the correct properties file when I don't have ANT_HOME set 
for my user.

Here's the setup:
1. svnant.jar and svnClientAdapter.jar are both placed in $HOME/.ant/lib
2. I run the attached build.xml

Without ANT_HOME variable set, I get the error message:
"[taskdef] Could not load definitions from resource svntask.properties. 
It could not be found."

Setting ANT_HOME to /usr/share/ant yields no error messages.

In both cases I can clearly see the jars in my home directory on the 
classpath.  I'm guessing it is some kind of classloader snafu.

Does anyone have suggestions or insight? (besides the obvious case of 
setting ANT_HOME in my .bashrc)

Thanks,
Aaron

(Versions...
OpenJDK Runtime Environment (IcedTea6 1.6) (fedora-33.b16.fc12-i386)
OpenJDK Client VM (build 14.0-b16, mixed mode)
Ant version: ant-1.7.1-12.fc12.i686
)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.xml
Type: text/xml
Size: 259 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/java-devel/attachments/20091209/28539bff/attachment.xml 


More information about the java-devel mailing list