ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5006] New: - <junit> not finding resources unless fork="true" specified.
Date Wed, 21 Nov 2001 17:02:17 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5006>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5006

<junit> not finding resources unless fork="true" specified.

           Summary: <junit> not finding resources unless fork="true"
                    specified.
           Product: Ant
           Version: 1.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: mancarella@opoipi.bancaintesa.it


I use the <junit> task with a nested <classpath> containing classes and
resources (property files and images).
In my test cases every call to:

Thread.currentThread().getContextClassLoader.getResourceAsStream()

or to:

ClassLoader.getSystemClassLoader().getResourceAsStream()

fails, unless fork="true" is specified.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message