ant-user mailing list archives

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


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$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.

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message