Skip to content

Commit

Permalink
Qute: skip generation of resources if a validation error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkouba committed Jun 12, 2023
1 parent 3a154fd commit 1cbfb46
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1711,12 +1711,18 @@ void generateValueResolvers(QuteConfig config, BuildProducer<GeneratedClassBuild
List<PanacheEntityClassesBuildItem> panacheEntityClasses,
List<TemplateDataBuildItem> templateData,
List<TemplateGlobalBuildItem> templateGlobals,
List<IncorrectExpressionBuildItem> incorrectExpressions,
LiveReloadBuildItem liveReloadBuildItem,
CompletedApplicationClassPredicateBuildItem applicationClassPredicate,
BuildProducer<GeneratedValueResolverBuildItem> generatedResolvers,
BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
BuildProducer<GeneratedTemplateInitializerBuildItem> generatedInitializers) {

if (!incorrectExpressions.isEmpty()) {
// Skip generation if a validation error occurs
return;
}

IndexView index = beanArchiveIndex.getIndex();
ClassOutput classOutput = new GeneratedClassGizmoAdaptor(generatedClasses, new Function<String, String>() {
@Override
Expand Down

0 comments on commit 1cbfb46

Please sign in to comment.