You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/09/14 22:01:09 UTC

[royale-asjs] branch develop updated: maven-archetypes: "royale-jewel-module-application-archetype", add additional properties for Crux

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

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new a4b4394  maven-archetypes: "royale-jewel-module-application-archetype", add additional properties for Crux
a4b4394 is described below

commit a4b4394e1a5266e352b1536c9f3e84303ef2d411
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Mon Sep 14 23:57:33 2020 +0200

    maven-archetypes: "royale-jewel-module-application-archetype", add additional properties for Crux
---
 .../resources/archetype-resources/__application__/pom.xml  | 14 +++++++++++++-
 .../main/resources/archetype-resources/__module__/pom.xml  | 14 +++++++++++++-
 .../src/main/resources/archetype-resources/pom.xml         |  4 +++-
 3 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__application__/pom.xml b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__application__/pom.xml
index 7f0b914..d784333 100644
--- a/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__application__/pom.xml
+++ b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__application__/pom.xml
@@ -45,7 +45,19 @@
           <targets>JSRoyale</targets>
           <debug>false</debug>
           <htmlTemplate>${dollar}{basedir}/src/main/resources/jewel-example-index-template.html</htmlTemplate>
-          <additionalCompilerOptions>-source-map=true;-js-compiler-option=--variable_map_output_file gccvars.txt;-js-compiler-option+=--property_map_output_file gccprops.txt</additionalCompilerOptions>
+          <additionalCompilerOptions>
+            -source-map=true;
+            -js-compiler-option=--variable_map_output_file gccvars.txt;
+            -js-compiler-option+=--property_map_output_file gccprops.txt;
+#if (${includeCrux} == 'true' || ${includeCrux} == 'yes' || ${includeCrux} == 'y')
+            -js-default-initializers=true;
+            -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css;
+            -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient;
+            -keep-code-with-metadata=Inject;
+#end
+            <!-- to access JSON object graph subobjects --> 
+            <!-- -js-dynamic-access-unknown-members=true;  -->
+          </additionalCompilerOptions>
         </configuration>
       </plugin>
       <plugin>
diff --git a/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__module__/pom.xml b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__module__/pom.xml
index a5639b8..9437cbb 100644
--- a/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__module__/pom.xml
+++ b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__module__/pom.xml
@@ -44,7 +44,19 @@
           <mainClass>${module}.mxml</mainClass>
           <targets>JSRoyale</targets>
           <debug>false</debug>
-          <additionalCompilerOptions>-source-map=true;-js-compiler-option=--variable_map_input_file ../../../../../${application}/target/javascript/bin/js-release/gccvars.txt;-js-compiler-option+=--property_map_input_file ../../../../../${application}/target/javascript/bin/js-release/gccprops.txt</additionalCompilerOptions>
+          <additionalCompilerOptions>
+            -source-map=true;
+            -js-compiler-option=--variable_map_input_file ../../../../../${application}/target/javascript/bin/js-release/gccvars.txt;
+            -js-compiler-option+=--property_map_input_file ../../../../../${application}/target/javascript/bin/js-release/gccprops.txt
+#if (${includeCrux} == 'true' || ${includeCrux} == 'yes' || ${includeCrux} == 'y')
+            -js-default-initializers=true;
+            -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css;
+            -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient;
+            -keep-code-with-metadata=Inject;
+#end
+            <!-- to access JSON object graph subobjects --> 
+            <!-- -js-dynamic-access-unknown-members=true;  -->
+          </additionalCompilerOptions>
         </configuration>
       </plugin>
       <plugin>
diff --git a/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/pom.xml
index 8f0a918..e0ed03c 100644
--- a/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/pom.xml
@@ -60,7 +60,9 @@
             <targets>JSRoyale</targets>
             <debug>false</debug>
             <htmlTemplate>${dollar}{basedir}/src/main/resources/jewel-example-index-template.html</htmlTemplate>
-            <additionalCompilerOptions>-source-map=true;</additionalCompilerOptions>
+            <additionalCompilerOptions>
+              -source-map=true;
+            </additionalCompilerOptions>
           </configuration>
           <dependencies>
             <dependency>