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 54fa5b2  BE0013: copy module files with maven to target folder so 
application can load have the module available to load
54fa5b2 is described below

commit 54fa5b2b23c4cc976b3f61d8582638465696cb51
Author: Carlos Rovira <[email protected]>
AuthorDate: Sun Jun 16 22:04:52 2019 +0200

    BE0013: copy module files with maven to target folder so application can 
load have the module available to load
---
 .../JewelModule/pom.xml                            | 46 ++++++++++++++--------
 .../JewelModule/src/main/royale/JewelModule.mxml   |  6 ++-
 .../pom.xml                                        | 14 +++++++
 3 files changed, 48 insertions(+), 18 deletions(-)

diff --git 
a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/pom.xml
 
b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/pom.xml
index b671c47..028b9a3 100644
--- 
a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/pom.xml
+++ 
b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/pom.xml
@@ -44,24 +44,36 @@
           
<additionalCompilerOptions>-js-compiler-option=--variable_map_input_file 
../../../../../MainJewelApp/target/javascript/bin/js-release/gccvars.txt;-js-compiler-option+=--property_map_input_file
 
../../../../../MainJewelApp/target/javascript/bin/js-release/gccprops.txt</additionalCompilerOptions>
         </configuration>
       </plugin>
+      
+      <plugin>
+        <groupId>com.coderplus.maven.plugins</groupId>
+        <artifactId>copy-rename-maven-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <id>rename-file</id>
+            <phase>install</phase>
+            <goals>
+              <goal>rename</goal>
+            </goals>
+            <configuration>
+              <fileSets>
+                <fileSet>
+                  
<sourceFile>${project.basedir}/target/javascript/bin/js-release/${project.artifactId}.js</sourceFile>
+                  
<destinationFile>${project.basedir}/../MainJewelApp/target/javascript/bin/js-release/modules/${project.artifactId}.js</destinationFile>
+                </fileSet>
+                <fileSet>
+                  
<sourceFile>${project.basedir}/target/javascript/bin/js-release/${project.artifactId}.min.css</sourceFile>
+                  
<destinationFile>${project.basedir}/../MainJewelApp/target/javascript/bin/js-release/modules/${project.artifactId}.min.css</destinationFile>
+                </fileSet>
+              </fileSets>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
     </plugins>
   </build>
 
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.royale.framework</groupId>
-      <artifactId>Icons</artifactId>
-      <version>0.9.6-SNAPSHOT</version>
-      <type>swc</type>
-      <classifier>swf</classifier>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.royale.framework</groupId>
-      <artifactId>Icons</artifactId>
-      <version>0.9.6-SNAPSHOT</version>
-      <type>swc</type>
-      <classifier>js</classifier>
-    </dependency>
-  </dependencies>
-
+  
 </project>
diff --git 
a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/src/main/royale/JewelModule.mxml
 
b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/src/main/royale/JewelModule.mxml
index 68712fe..be2245f 100644
--- 
a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/src/main/royale/JewelModule.mxml
+++ 
b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/src/main/royale/JewelModule.mxml
@@ -20,7 +20,11 @@ limitations under the License.
 <j:Module xmlns:fx="http://ns.adobe.com/mxml/2009";
         xmlns:j="library://ns.apache.org/royale/jewel"
         xmlns:js="library://ns.apache.org/royale/basic">
-        
+    
+    <j:beads>
+        <j:VerticalLayout/>
+    </j:beads>
+    
     <j:valuesImpl>
         <js:SimpleCSSValuesImpl/>
     </j:valuesImpl>
diff --git 
a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/pom.xml
 
b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/pom.xml
index 28e691b..d88216a 100644
--- 
a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/pom.xml
+++ 
b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/pom.xml
@@ -54,6 +54,20 @@
     </dependency>
     <dependency>
       <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Icons</artifactId>
+      <version>0.9.6-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>swf</classifier>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Icons</artifactId>
+      <version>0.9.6-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
       <artifactId>Jewel-Light-NoFlat-Primary-Red-Theme</artifactId>
       <version>0.9.6-SNAPSHOT</version>
       <type>swc</type>

Reply via email to