svendiedrichsen / jollyday

Jollyday - A holiday API
Other
190 stars 114 forks source link

ClassLoader returned from ClassLoadingUtil cannot find .properties file by calling getResoure() #109

Closed ShenJack closed 5 years ago

ShenJack commented 5 years ago

I'm currently developing plugin for Jenkins, and the classloader returned from ClassLoadingUtil is the classloader of the current thread, I'm wondering if some system(like Jenkins) would customize a classloader for the thread.

While the class loader return by HolidayCalendar.class.getClassLoader() works normally.

ShenJack commented 5 years ago

Sorry, it's just my usage error, I succeed when switch the classloader of current thread to the CalendarManager's classloader.