mirror of
https://github.com/apache/nifi.git
synced 2025-02-12 13:05:14 +00:00
da593a2e8e
Thread.currentThread().getContextClassLoader().getResourceAsStream(...) works in UnitTest, but not if the NAR is deployed in /extensions folder. If you want to use the processer the resource 'file.txt' is not found. I changed this to 'getClass().getClassLoader()...' and its working as UnitTest and when deployed Signed-off-by: Matthew Burgess <mattyb149@apache.org> This closes #3381