ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cowwoc <cow...@bbs.darktech.org>
Subject Ant Thread-Context ClassLoader causing problems
Date Thu, 28 Aug 2008 17:29:59 GMT

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
-- 
View this message in context: http://www.nabble.com/Ant-Thread-Context-ClassLoader-causing-problems-tp19205351p19205351.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message