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 315c1659e MXMLRoyalePublisher: fix duplicate scripts/ prefixing src
when using js-include-script for app
315c1659e is described below
commit 315c1659eba18f75d652d84e2c71267a718d7f39
Author: Josh Tynjala <[email protected]>
AuthorDate: Tue Mar 11 14:22:20 2025 -0700
MXMLRoyalePublisher: fix duplicate scripts/ prefixing src when using
js-include-script for app
---
.../compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 facbc1874..f99aa861c 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
@@ -1088,7 +1088,7 @@ public class MXMLRoyalePublisher extends JSPublisher
implements IJSRoyalePublish
for (String script : googConfiguration.getJSIncludeScript())
{
String scriptOutputPath =
Paths.get("scripts").resolve(Paths.get(script).getFileName()).toString();
- depsHTML.append("\t<script type=\"text/javascript\"
src=\"scripts/");
+ depsHTML.append("\t<script type=\"text/javascript\" src=\"");
depsHTML.append(scriptOutputPath);
depsHTML.append("\"></script>\n");