You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2025/03/31 22:31:50 UTC
(royale-compiler) branch develop updated: MXMLRoyalePublisher: include theme SWCs in js-include file copying
This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new 45327d2c5 MXMLRoyalePublisher: include theme SWCs in js-include file copying
45327d2c5 is described below
commit 45327d2c56385277709298f9f460de3c52c1c3d8
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Mon Mar 31 15:31:36 2025 -0700
MXMLRoyalePublisher: include theme SWCs in js-include file copying
---
.../internal/codegen/mxml/royale/MXMLRoyalePublisher.java | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java
index 3a3e6650d..5e03d9cc0 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java
@@ -1058,6 +1058,18 @@ public class MXMLRoyalePublisher extends JSPublisher implements IJSRoyalePublish
reachableSWCs.add(swc);
}
+ final ISWCManager swcManager = project.getWorkspace().getSWCManager();
+ List<IFileSpecification> themes = project.getThemeFiles();
+ for (final IFileSpecification themeFile : themes)
+ {
+ final String extension = FilenameUtils.getExtension(themeFile.getPath());
+ if ("swc".equalsIgnoreCase(extension))
+ {
+ final ISWC swc = swcManager.get(new File(themeFile.getPath()));
+ reachableSWCs.add(swc);
+ }
+ }
+
// files included with -js-include-asset are copied to the "assets"
// sub-directory of the output directory.
for (ISWC swc : reachableSWCs)