[logback-dev] [JIRA] Created: (LBCLASSIC-68) logback.xml not found when running under Ant task

Gili (JIRA) noreply-jira at qos.ch
Thu Aug 28 19:20:45 CEST 2008


logback.xml not found when running under Ant task
-------------------------------------------------

                 Key: LBCLASSIC-68
                 URL: http://jira.qos.ch/browse/LBCLASSIC-68
             Project: logback-classic
          Issue Type: Bug
          Components: Other
    Affects Versions: 0.9.9
         Environment: Ant 1.7.1
            Reporter: Gili
            Assignee: Logback dev list


Logback uses the thread context ClassLoader to look up logback.xml but the Ant uses a custom ClassLoader that does not have the task JAR in its classpath, as a result logback.xml is never found.

That is, getClass().getClassLoader().getResource("logback.xml") works
Thread.currentThread().getContextClassLoader().getResource("logback.xml") does not.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list