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 authored and sberyozkin committed Jun 21, 2023
1 parent ecf513d commit 56109ec
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 56109ec

Please sign in to comment.