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

fix: find file-routes.json in dev bundle #20324

Merged
merged 4 commits into from
Oct 27, 2024
Merged

fix: find file-routes.json in dev bundle #20324

merged 4 commits into from
Oct 27, 2024

Conversation

tepi
Copy link
Contributor

@tepi tepi commented Oct 23, 2024

Fixes #20290

Copy link

github-actions bot commented Oct 23, 2024

Test Results

1 142 files  ±0  1 142 suites  ±0   1h 29m 6s ⏱️ +42s
7 474 tests ±0  7 424 ✅ ±0  50 💤 ±0  0 ❌ ±0 
7 842 runs  +6  7 782 ✅ +6  60 💤 ±0  0 ❌ ±0 

Results for commit 299a789. ± Comparison against base commit 52463c9.

♻️ This comment has been updated with latest results.

/**
* Path of the folder to custom dev-bundle.
*/
public static final String DEV_BUNDLE_FOLDER = "target/dev-bundle/";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this will most likely not work for gradle projects.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StaticFileServer seems to use DevBundleUtils.findBundleFile(...) to get resources from the application bundle

            assetInDevBundleUrl = DevBundleUtils.findBundleFile(
                    deploymentConfiguration.getProjectFolder(),
                    deploymentConfiguration.getBuildFolder(), assetInDevBundle);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks! I'll see if this can be used here as well.

Copy link

sonarcloud bot commented Oct 25, 2024

@tepi tepi merged commit 55efd4e into main Oct 27, 2024
26 checks passed
@tepi tepi deleted the fix/files-json-dev-bundle branch October 27, 2024 07:47
vaadin-bot pushed a commit that referenced this pull request Oct 27, 2024
vaadin-bot added a commit that referenced this pull request Oct 28, 2024
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.6.0.alpha2 and is also targeting the upcoming stable 24.6.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vaadin.frontend.hotdeploy=false not possible if Hilla views is used
4 participants