Skip to content

Commit

Permalink
#11 disable classpath scanning when running with quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
mvysny committed Mar 17, 2023
1 parent 5dbf25e commit b6fac17
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,8 @@ the quickstart config file will contain Vaadin dev mode stuff like `DevModeStart
public class Main {
public static void main(String[] args) throws Exception {
final boolean dumpQuickstartWeb = true;
new VaadinBoot() {
protected WebAppContext createWebAppContext() throws MalformedURLException {
final VaadinBoot boot = new VaadinBoot() {
protected WebAppContext createWebAppContext() throws IOException {
WebAppContext ctx = super.createWebAppContext();
if (dumpQuickstartWeb) {
ctx.setAttribute(QuickStartConfiguration.MODE, QuickStartConfiguration.Mode.GENERATE);
Expand All @@ -741,7 +741,11 @@ public class Main {
}
return ctx;
}
}.withArgs(args).run();
}.withArgs(args);
if (!dumpQuickstartWeb) {
boot.disableClasspathScanning();
}
boot.run();
}
}
```
Expand Down

0 comments on commit b6fac17

Please sign in to comment.