-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jbang script template fails #5
Comments
Yes, this is a bug caused by IDEA's classloader. IDEA has its thread model and classloader, and private static ResourceRef getClasspathResource(String cpResource) {
String ref = cpResource.substring(11);
Util.verboseMsg("Duplicating classpath resource " + ref);
ClassLoader cl = Thread.currentThread().getContextClassLoader();
if (cl == null) {
cl = ResourceRef.class.getClassLoader();
}
URL url = cl.getResource(ref);
if (url == null) {
throw new ExitException(BaseCommand.EXIT_INVALID_INPUT,
"Resource not found on class path: " + ref);
} |
Please dont load jbang as a jar. Maybe in future but do not do that. Just call out to it as a cli tool. |
Fixed. jbang.jar removed and templates retrieve by CLI |
Awesome! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: