You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/10/12 17:49:00 UTC

[royale-compiler] branch develop updated: templates should use projectname not main class name

This is an automated email from the ASF dual-hosted git repository.

aharui 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 a229143  templates should use projectname not main class name
a229143 is described below

commit a229143d8ed2c3da736d206974d0d3ab6c3abed7
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Oct 12 10:48:43 2018 -0700

    templates should use projectname not main class name
---
 .../compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 655a162..07336a2 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
@@ -718,9 +718,9 @@ public class MXMLRoyalePublisher extends JSGoogPublisher implements IJSPublisher
 
         String result = null;
         if (type.equals("release")) {
-            result = input.replaceAll("\\$\\{application\\}", mainClassQName + ".min");
+            result = input.replaceAll("\\$\\{application\\}", projectName + ".min");
         } else {
-            result = input.replaceAll("\\$\\{application\\}", mainClassQName);
+            result = input.replaceAll("\\$\\{application\\}", projectName);
         }
         if (bgcolor != null)
             result = result.replaceAll("\\$\\{bgcolor\\}", bgcolor);