Created
April 13, 2012 23:43
-
-
Save kohsuke/2381018 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ClassLoader old = Thread.currentThread().getContextClassLoader(); | |
| Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); | |
| try { | |
| ... call into Velocity ... | |
| } finally { | |
| Thread.currentThread().setContextClassLoader(old); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment