You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/12/03 16:54:54 UTC

DO NOT REPLY [Bug 15018] - taskdef + getResourceAsStream broken

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=15018>.
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=15018

taskdef + getResourceAsStream broken





------- Additional Comments From bodewig@apache.org  2002-12-03 15:54 -------
Can org.apache.fop.tools.anttasks.Fop be loaded via the system classloader?

Can the class that is doing
Thread.currentThread().getContextClassLoader().getResourceAsStream(RES_PATH + file)
be loaded from the system classloader?

If so, Ant will load that class from the system classloader (as it delegates) and
you run into the problem you describe.  See Bug 6606 and
<http://jakarta.apache.org/ant/faq.html#delegating-classloader>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>