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

[vaadin-gradle-plugin] Extra resource folders in IDEA integration (not in Eclipse integration) lead to long build times #20608

Open
enver-haase opened this issue Dec 3, 2024 · 2 comments

Comments

@enver-haase
Copy link
Contributor

Describe the bug

Bild

There are three folders that are added under IDEA but not so under Eclipse.

Customer has build times in IDEA:

  • 2:07m to server start
  • 3:30m to website has been displayed

Eclipse:

  • 1:36m to server start
  • 2:56m to website has been displayed

Note that the customer found a fix to remove these three folders, and then the build times of the two IDEs are roughly the same.

Expected-behavior

Expected behaviour is that in both IDEs the build times are roughly the same.

Reproduction

This is not really how to reproduce the issue but how to fix long waiting times in IDEA (with Gradle):

tasks.register('explodedWar', Copy) {
    dependsOn war
    from(zipTree(tasks.war.archiveFile.get()))
    into "${layout.buildDirectory.get().asFile}/${tasks.named('war').get().archiveFile.get().asFile.name}"
}

tasks.register('beforeLaunch', Delete) {
    dependsOn explodedWar
    def warTask = tasks.named('war').get()
    def archiveFileName = warTask.archiveFile.get().asFile.name
    delete "${layout.buildDirectory.get().asFile}/${archiveFileName}/META-INF/resources"
}

Instead of "build" the "beforeLaunch" needs to be set in the server gradle configuration.

System Info

Windows, Vaadin Platform 24.5.6, browser type and version not important.

@enver-haase enver-haase added the bug label Dec 3, 2024
@ZheSun88 ZheSun88 transferred this issue from vaadin/platform Dec 4, 2024
@mshabarov
Copy link
Contributor

@enver-haase could the Customer provide the server start-up logs (with the debug level for com.vaadin) for both runs? For us to understand where the most of the time is spent.

@christophersteinmann
Copy link

christophersteinmann commented Dec 18, 2024

Hello,

here are 2 Startup-Logs. Please have a look if this is what you need.

Startup_eclipse.log
Startup_intellij_wf.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔎 Investigation
Development

No branches or pull requests

3 participants