Skip to content

Commit

Permalink
Fix static imports (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jun 17, 2024
1 parent 8d93b4f commit e0fc4bd
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package io.quarkiverse.quinoa.deployment;

import static io.quarkiverse.quinoa.QuinoaRecorder.QUINOA_SPA_ROUTE_ORDER;
import static io.quarkiverse.quinoa.deployment.config.QuinoaConfig.*;
import static io.quarkiverse.quinoa.deployment.config.QuinoaConfig.getNormalizedIgnoredPathPrefixes;
import static io.quarkiverse.quinoa.deployment.config.QuinoaConfig.isDevServerMode;
import static io.quarkiverse.quinoa.deployment.config.QuinoaConfig.isEnabled;
import static io.quarkiverse.quinoa.deployment.framework.FrameworkType.overrideConfig;
import static io.quarkiverse.quinoa.deployment.packagemanager.PackageManagerRunner.autoDetectPackageManager;
import static io.quarkus.deployment.annotations.ExecutionTime.RUNTIME_INIT;
Expand Down Expand Up @@ -219,7 +221,7 @@ void watchChanges(
public void produceGeneratedStaticResources(
ConfiguredQuinoaBuildItem configuredQuinoa,
BuildProducer<GeneratedStaticResourceBuildItem> generatedStaticResourceProducer,
Optional<BuiltResourcesBuildItem> uiResources) throws IOException {
Optional<BuiltResourcesBuildItem> uiResources) {
if (configuredQuinoa != null && configuredQuinoa.resolvedConfig().justBuild()) {
LOG.info("Quinoa is in build only mode");
return;
Expand All @@ -243,7 +245,7 @@ public void runtimeInit(
return;
}
if (uiResources.isPresent() && !uiResources.get().resources().isEmpty()) {
if (configuredQuinoa.resolvedConfig().enableSPARouting()) {
if (Objects.requireNonNull(configuredQuinoa).resolvedConfig().enableSPARouting()) {
routes.produce(RouteBuildItem.builder().orderedRoute("/*", QUINOA_SPA_ROUTE_ORDER)
.handler(recorder
.quinoaSPARoutingHandler(getNormalizedIgnoredPathPrefixes(configuredQuinoa.resolvedConfig())))
Expand Down Expand Up @@ -425,4 +427,4 @@ public Path getUIDir() {
}
}

}
}

0 comments on commit e0fc4bd

Please sign in to comment.