<div dir="ltr">You should be able to use a ClassPathResourceManager, something along these lines. This should read files from the classpath which would include the jars. As long as you find the right file path it should work.<div><br></div><div>ResourceManager resourceManager = new ClassPathResourceManager(CurrentClass.class.getClassLoader(),&quot;someprefix&quot;);<br></div><div><div>ResourceHandler handler = new ResourceHandler(resourceManager);</div><div>handler.setCacheTime((int)TimeUnit.HOURS.toSeconds(4));</div></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 18, 2017 at 3:50 PM, Ove Ranheim <span dir="ltr">&lt;<a href="mailto:oranheim@gmail.com" target="_blank">oranheim@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Hi,<div><br></div><div>How do I register a resource handler for webjars.</div><div><br></div><div>E.g. <a href="https://github.com/webjars/bootstrap-sass" target="_blank">https://github.com/<wbr>webjars/bootstrap-sass</a></div><div><br></div><div>Regards,</div><div>Ove</div><div><br></div></div><br>______________________________<wbr>_________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/undertow-dev</a><br></blockquote></div><br></div>