-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add web/templates as a Qute template root #165
Conversation
532548f
to
de1bc4a
Compare
de1bc4a
to
10fcec6
Compare
WebBundlerConfig config) { | ||
templateRootProducer.produce(new TemplateRootBuildItem(config.fromWebRoot("templates"))); | ||
nativeImageResourceDirectoryProducer | ||
.produce(new NativeImageResourceDirectoryBuildItem(config.fromWebRoot("templates"))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mkouba I had to add this for Native support
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it should be done by the Qute Processor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, we do produce a NativeImageResourceBuildItem
for each template found. TBH I've never seen NativeImageResourceDirectoryBuildItem
before.
Also we test a native image in quarkus-qute-web
.
What's the actual problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mkouba the tests were not passing in native mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quarkus-web-bundler
tests I assume? Is there anything special in those tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phillip-kruger I think this is the origin of #172, NativeImageResourceDirectoryBuildItem
might want the directory to exist (which should not lead to a NPE anyway), so I need to add a check here and maybe a fix in Quarkus
cc @angelozerr