Skip to content

Commit

Permalink
Applied same fix for index.html generation
Browse files Browse the repository at this point in the history
  • Loading branch information
salmonb committed Mar 24, 2024
1 parent 7fe5dc6 commit d4f975b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main/java/dev/webfx/cli/modulefiles/DevGwtHtmlFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public void writeFile() {
StringBuilder headSb = new StringBuilder(), bodySb = new StringBuilder();
ReusableStream<ProjectModule> transitiveProjectModules =
ProjectModule.filterProjectModules(getProjectModule().getMainJavaSourceRootAnalyzer().getThisAndTransitiveModules()).distinct();
// Calling a terminal operation - here count() - otherwise the next stream may not provide a complete list
// (although it's ended with a terminal operation) for any strange reason.
// TODO Investigate why and provide a better fix
transitiveProjectModules.count();
// Now the stream should be complete
ReusableStream.concat(
transitiveProjectModules.map(m -> m.getWebFxModuleFile().getHtmlNode()),
ReusableStream.of(XmlUtil.lookupNode(XmlUtil.parseXmlString("<html><body order=\"0\"><script type=\"text/javascript\" src=\"" + getGeneratedJsFileName() + "\" charset=\"utf-8\"/></body></html>"), "/html"))
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/dev/webfx/cli/version/dev/version.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=0.1.0-SNAPSHOT
build.timestamp=2024-03-23 19:08
build.timestamp=2024-03-24 10:52

0 comments on commit d4f975b

Please sign in to comment.