Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Ant Thread-Context ClassLoader causing problems

cowwoc

2008-08-28


Author LoginPost Reply

Hi,

My custom Ant task uses Logback under the hood. Logback uses the
thread-context ClassLoader to find its configuration file (logback.xml). The
problem is that Ant sets the TCCL to
org.apache.tools.ant.module.bridge.AntBridge$MaskedClassLoader and that CL
does not contain my task's JAR file while the Task is executing.

Logback is going to fix this on its end by falling back on the
task.getClass() classloader, but I was wondering whether it would be
possible to add a fix on Ant's side as well so the TCCL contains the Task
classpath upon running.

Thanks,
Gili
--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.