Skip to content
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

AW-Mate does not fail the build if a template is not found #1268

Closed
ipolevoy opened this issue Jan 19, 2023 · 0 comments
Closed

AW-Mate does not fail the build if a template is not found #1268

ipolevoy opened this issue Jan 19, 2023 · 0 comments

Comments

@ipolevoy
Copy link
Member

ipolevoy commented Jan 19, 2023

This file is configured in a tag: <@html file='./src/main/open-api/export-cod.html'/>

the exception is printed (see below), but the build continues to success!

java.lang.RuntimeException: java.io.FileNotFoundException: src/main/open-api/export-cod.html (No such file or directory)
    at org.javalite.common.Util.readFile (Util.java:114)
    at org.javalite.common.Util.readFile (Util.java:88)
    at org.javalite.activeweb.HTMLTag.execute (HTMLTag.java:35)
    at freemarker.core.Environment.visit (Environment.java:451)
    at freemarker.core.UnifiedCall.accept (UnifiedCall.java:102)
    at freemarker.core.Environment.visit (Environment.java:334)
    at freemarker.core.Environment.visit (Environment.java:340)
    at freemarker.core.Environment.process (Environment.java:313)
    at freemarker.template.Template.process (Template.java:383)
    at org.javalite.activeweb.OpenAPITemplateManager.process (OpenAPITemplateManager.java:50)
    at org.javalite.activeweb.mojo.Generator.generate (Generator.java:18)
    at org.javalite.activeweb.mojo.GenerateMojo.execute (GenerateMojo.java:86)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant