Why does ant ignore tasks in ~/.ant/lib ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
)
<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>
--
fedora-devel-java-list mailing list
fedora-devel-java-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list

[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux