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 a487fcfeb MXMLRoyalePublisher added mainClass as a token that may be
replaced in the HTML template (closes #245)
a487fcfeb is described below
commit a487fcfeb00ff5998d7789a78708bd534bb5825e
Author: Josh Tynjala <[email protected]>
AuthorDate: Fri Mar 27 10:19:14 2026 -0700
MXMLRoyalePublisher added mainClass as a token that may be replaced in the
HTML template (closes #245)
---
RELEASE_NOTES.md | 1 +
.../compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java | 1 +
2 files changed, 2 insertions(+)
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 002459d20..189d45f11 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -68,6 +68,7 @@ Apache Royale Compiler 1.0.0
- compiler: Fixed MXML `<fx:Vector>` not being emitted to JavaScript.
- compiler: Fixed property assignment in MXML factory methods when using data
binding.
- compiler: Fixed `<fx:DesignLayer>` allowing children without
`[DefaultProperty]` metadata.
+- compiler: Added `${mainClass}` token to HTML template replacement.
- debugger: Added missing isolate ID to SWF load and unload events.
- debugger: Fixed debugger targeting the current JDK version instead of the
intended minimum JDK version.
- debugger: Fixed localized messages appearing as unprocessed tokens.
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 76a388b47..627a7a11d 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
@@ -952,6 +952,7 @@ public class MXMLRoyalePublisher extends JSPublisher
implements IJSRoyalePublish
//result = result.replaceAll("\\$\\{expressInstallSwf\\}",
expressInstallSwf);
if (height != null)
result = result.replaceAll("\\$\\{height\\}",
safeReplacement(height.toString()));
+ result = result.replaceAll("\\$\\{mainClass\\}",
safeReplacement(mainClassQName));
if (pageTitle != null)
result = result.replaceAll("\\$\\{title\\}",
safeReplacement(pageTitle));
//result = result.replaceAll("\\$\\{version_major\\}", versionMajor);