Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 84454 invoked by uid 500); 23 Mar 2001 17:55:26 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Delivered-To: moderator for ant-user@jakarta.apache.org Received: (qmail 94162 invoked from network); 23 Mar 2001 16:56:00 -0000 Message-ID: From: Danil Suits To: "'ant-user@jakarta.apache.org'" Subject: JunitTask and classpath Date: Fri, 23 Mar 2001 11:55:29 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Objective: to be able to report which resource was used to load a particular class when a testcase failed. http://www.javaworld.com/javaworld/javatips/jw-javatip105.html gave me the hints that I needed to get the general idea of how to identify the resource used to load a file. This is working, up to a point. I can find some classes, but not those that I am interested in. My current hypothesis is that getResource is tracking down those classes which are available via System.getProperty("java.class.path"), but not those which were made available via the nested element. [Clarification: the classes are available - the test itself runs as I expect it too - I'm simply unable to extract the information I want from it]. Any suggestions on how to find which class/jar file is providing the implementation of a class within the running TestCase (preferred are solutions which will still work when the test is running outside of the junit task). Danil