Skip to content

Commit

Permalink
Generalised emulation packages to emul.* (was emul.java.*)
Browse files Browse the repository at this point in the history
  • Loading branch information
salmonb committed Nov 29, 2023
1 parent 7815e4a commit dd45762
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/main/java/dev/webfx/cli/modulefiles/DevGwtModuleFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ public boolean updateDocument(Document document) {
.sorted()
.forEach(p -> {
// In general, we add <source path="..."/> for each package. Exception is made with
// emul.java.* packages (coming from webfx-platform-javabase-emul-gwt module) that
// are actually relocated to java.* packages in GWT super sources. So for such
// packages, we add <super-source path="" includes="java/..."/> instead.
boolean javaEmul = p.startsWith("emul.java");
Element sourceElement = document.createElement(javaEmul ? "super-source" : "source");
if (javaEmul)
// emul.xxx.* packages (coming from webfx-platform-javabase-emul-gwt module) that
// are actually relocated to xxx.* packages in GWT super sources. So for such
// packages, we add <super-source path="" includes="xxx/..."/> instead.
boolean isEmulPackage = p.startsWith("emul.");
Element sourceElement = document.createElement(isEmulPackage ? "super-source" : "source");
if (isEmulPackage)
sourceElement.setAttribute("includes", p.substring(5).replaceAll("\\.", "/") + "/");
sourceElement.setAttribute("path", javaEmul ? "" : p.replaceAll("\\.", "/"));
sourceElement.setAttribute("path", isEmulPackage ? "" : p.replaceAll("\\.", "/"));
nodeAppenderIfNotOnlyComment.accept(sourceElement);
});
resourcePackages
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=2023-11-21 14:47
build.timestamp=2023-11-29 17:25

0 comments on commit dd45762

Please sign in to comment.