dtolabs/rundeck — pull request #381 by sfdc-kho (2013-04-26 02:28:07+00:00)
Title: Force rundeck to copy plugin jar to reload jar resources.

I am running into a couple problems hot-swapping plugins during development and I just wanted to run a couple ideas by you before I go and submit an issue. The crux of the problem is that URLClassLoader seems to cache jars so that if you swap in a jar that has additional resources - it can't load those additional resources.

This impacts any plugin that embeds resources. My simple proposed fix is to modify JarPluginProviderLoader so that it copies and renames the jar so that URLClassLoader is forced to reload (vs creating a custom classloader).