Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 39630 invoked from network); 28 Aug 2008 17:30:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Aug 2008 17:30:34 -0000 Received: (qmail 82423 invoked by uid 500); 28 Aug 2008 17:30:29 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 82058 invoked by uid 500); 28 Aug 2008 17:30:28 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 82047 invoked by uid 99); 28 Aug 2008 17:30:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2008 10:30:28 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2008 17:29:30 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KYlJn-0006jc-Rn for user@ant.apache.org; Thu, 28 Aug 2008 10:29:59 -0700 Message-ID: <19205351.post@talk.nabble.com> Date: Thu, 28 Aug 2008 10:29:59 -0700 (PDT) From: cowwoc To: user@ant.apache.org Subject: Ant Thread-Context ClassLoader causing problems MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: cowwoc@bbs.darktech.org X-Virus-Checked: Checked by ClamAV on apache.org 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