Skip to content

Commit 8b698b3

Browse files
authored
fix: Pass javaResourceFolder to Options in DevModeInitializer (#23440)
DevModeInitializer was creating an Options object without setting javaResourceFolder, causing TaskUpdateSettingsFile to overwrite it with an empty string. This broke legacy theme component styles in Gradle dev mode because the Vite theme plugin couldn't find vaadin-featureflags.properties in the correct location. Fixes #23438
1 parent a833056 commit 8b698b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vaadin-dev-server/src/main/java/com/vaadin/base/devserver/startup/DevModeInitializer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ public static DevModeHandler initDevModeHandler(Set<Class<?>> classes,
225225
.withFrontendDirectory(frontendFolder)
226226
.withFrontendGeneratedFolder(
227227
new File(frontendFolder + FrontendUtils.GENERATED))
228-
.withBuildDirectory(config.getBuildFolder());
228+
.withBuildDirectory(config.getBuildFolder())
229+
.setJavaResourceFolder(config.getJavaResourceFolder());
229230

230231
log().info("Starting dev-mode updaters in {} folder.",
231232
options.getNpmFolder());

0 commit comments

Comments
 (0)