You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pi...@apache.org on 2017/02/08 23:07:44 UTC

flex-tourjs git commit: - Add to poms ability to copying examples into the content folder of TourJS (no swf copying) - Add to build ImageButton example

Repository: flex-tourjs
Updated Branches:
  refs/heads/develop ae2dca1e4 -> ad528116f


- Add to poms ability to copying examples into the content folder of TourJS (no swf copying)
- Add to build ImageButton example


Project: http://git-wip-us.apache.org/repos/asf/flex-tourjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-tourjs/commit/ad528116
Tree: http://git-wip-us.apache.org/repos/asf/flex-tourjs/tree/ad528116
Diff: http://git-wip-us.apache.org/repos/asf/flex-tourjs/diff/ad528116

Branch: refs/heads/develop
Commit: ad528116f8421bcc72709bfc71aa336f88260e21
Parents: ae2dca1
Author: piotrz <pi...@apache.org>
Authored: Thu Feb 9 00:07:39 2017 +0100
Committer: piotrz <pi...@apache.org>
Committed: Thu Feb 9 00:07:39 2017 +0100

----------------------------------------------------------------------
 TourJS/pom.xml                                  | 18 +++++++-
 examples/pom.xml                                | 14 ++++--
 .../generalComponents/alert/Alert/pom.xml       | 40 ++++++++++++++++-
 .../generalComponents/alert/SimpleAlert/pom.xml | 38 ++++++++++++++++
 .../button/ImageButton/pom.xml                  | 46 ++++++++++++++++++--
 .../generalComponents/button/TextButton/pom.xml | 38 ++++++++++++++++
 pom.xml                                         |  2 +-
 7 files changed, 186 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/ad528116/TourJS/pom.xml
----------------------------------------------------------------------
diff --git a/TourJS/pom.xml b/TourJS/pom.xml
index 37c824e..0f04d87 100644
--- a/TourJS/pom.xml
+++ b/TourJS/pom.xml
@@ -106,7 +106,7 @@
         <version>3.0.2</version>
         <executions>
           <execution>
-            <id>copy-resources</id>
+            <id>copy-debug-resources</id>
             <!-- here the phase you need -->
             <phase>validate</phase>
             <goals>
@@ -114,6 +114,22 @@
             </goals>
             <configuration>
               <outputDirectory>${basedir}/target/javascript/bin/js-debug/resources</outputDirectory>
+              <resources>          
+                <resource>
+                  <directory>src/main/resources</directory>
+                  <filtering>true</filtering>
+                </resource>
+              </resources>              
+            </configuration>            
+          </execution>
+		  <execution>
+            <id>copy-release-resources</id>
+            <!-- here the phase you need -->
+            <phase>validate</phase>
+            <goals>
+              <goal>copy-resources</goal>
+            </goals>
+            <configuration>
               <outputDirectory>${basedir}/target/javascript/bin/js-release/resources</outputDirectory>
               <resources>          
                 <resource>

http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/ad528116/examples/pom.xml
----------------------------------------------------------------------
diff --git a/examples/pom.xml b/examples/pom.xml
index 3744103..cd0610b 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -13,10 +13,18 @@
   <version>0.1.0-SNAPSHOT</version> 
   <packaging>pom</packaging> 
 
+  <properties>
+    <alert.module>visualComponents/generalComponents/alert/Alert</alert.module>
+	<simplealert.module>visualComponents/generalComponents/alert/SimpleAlert</simplealert.module>
+	<textbutton.module>visualComponents/generalComponents/button/TextButton</textbutton.module>
+	<imagebutton.module>visualComponents/generalComponents/button/ImageButton</imagebutton.module>
+  </properties>
+
   <modules>
-	<module>visualComponents/generalComponents/alert/Alert</module>
-	<module>visualComponents/generalComponents/alert/SimpleAlert</module>  
-    <module>visualComponents/generalComponents/button/TextButton</module>
+	<module>${alert.module}</module>
+	<module>${simplealert.module}</module>  
+    <module>${textbutton.module}</module>
+	<module>${imagebutton.module}</module>
   </modules> 
 
 </project> 
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/ad528116/examples/visualComponents/generalComponents/alert/Alert/pom.xml
----------------------------------------------------------------------
diff --git a/examples/visualComponents/generalComponents/alert/Alert/pom.xml b/examples/visualComponents/generalComponents/alert/Alert/pom.xml
index fa43040..a1e7d54 100644
--- a/examples/visualComponents/generalComponents/alert/Alert/pom.xml
+++ b/examples/visualComponents/generalComponents/alert/Alert/pom.xml
@@ -34,7 +34,7 @@
   <packaging>swf</packaging>
 
   <name>Apache Flex - FlexJS: Examples: FlexJS: Alert</name>
-
+  
   <build>
     <sourceDirectory>src/main/flex</sourceDirectory>
     <plugins>
@@ -95,6 +95,44 @@
           </artifacts>
         </configuration>
       </plugin>
+	  <plugin>
+			<artifactId>maven-resources-plugin</artifactId>
+			<version>3.0.2</version>
+			<executions>
+			  <execution>
+				<id>alert-src</id>
+				<phase>install</phase>
+				<goals>
+				  <goal>copy-resources</goal>
+				</goals>
+				<configuration>
+				  <outputDirectory>../../../../../TourJS/src/main/resources/content/${alert.module}/src/main/flex</outputDirectory>
+				  <resources>          
+					<resource>
+					  <directory>src</directory>
+					  <filtering>true</filtering>
+					</resource>
+				  </resources>              
+				</configuration>            
+			  </execution>
+			  <execution>
+				<id>alert-js-release</id>
+				<phase>install</phase>
+				<goals>
+				  <goal>copy-resources</goal>
+				</goals>
+				<configuration>
+				  <outputDirectory>../../../../../TourJS/src/main/resources/content/${alert.module}/bin/js-release</outputDirectory>
+				  <resources>          
+					<resource>
+					  <directory>target/javascript/bin/js-release</directory>
+					  <filtering>true</filtering>
+					</resource>
+				  </resources>              
+				</configuration>            
+			  </execution>
+			</executions>
+		</plugin>
     </plugins>
 	</build>
   <dependencies>

http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/ad528116/examples/visualComponents/generalComponents/alert/SimpleAlert/pom.xml
----------------------------------------------------------------------
diff --git a/examples/visualComponents/generalComponents/alert/SimpleAlert/pom.xml b/examples/visualComponents/generalComponents/alert/SimpleAlert/pom.xml
index f664d7f..12e64f7 100644
--- a/examples/visualComponents/generalComponents/alert/SimpleAlert/pom.xml
+++ b/examples/visualComponents/generalComponents/alert/SimpleAlert/pom.xml
@@ -95,6 +95,44 @@
           </artifacts>
         </configuration>
       </plugin>
+	  	  <plugin>
+			<artifactId>maven-resources-plugin</artifactId>
+			<version>3.0.2</version>
+			<executions>
+			  <execution>
+				<id>simplealert-src</id>
+				<phase>install</phase>
+				<goals>
+				  <goal>copy-resources</goal>
+				</goals>
+				<configuration>
+				  <outputDirectory>../../../../../TourJS/src/main/resources/content/${simplealert.module}/src/main/flex</outputDirectory>
+				  <resources>          
+					<resource>
+					  <directory>src</directory>
+					  <filtering>true</filtering>
+					</resource>
+				  </resources>              
+				</configuration>            
+			  </execution>
+			  <execution>
+				<id>simplealert-js-release</id>
+				<phase>install</phase>
+				<goals>
+				  <goal>copy-resources</goal>
+				</goals>
+				<configuration>
+				  <outputDirectory>../../../../../TourJS/src/main/resources/content/${simplealert.module}/bin/js-release</outputDirectory>
+				  <resources>          
+					<resource>
+					  <directory>target/javascript/bin/js-release</directory>
+					  <filtering>true</filtering>
+					</resource>
+				  </resources>              
+				</configuration>            
+			  </execution>
+			</executions>
+		</plugin>
     </plugins>
 	</build>
   <dependencies>

http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/ad528116/examples/visualComponents/generalComponents/button/ImageButton/pom.xml
----------------------------------------------------------------------
diff --git a/examples/visualComponents/generalComponents/button/ImageButton/pom.xml b/examples/visualComponents/generalComponents/button/ImageButton/pom.xml
index 8ca3aca..e530196 100644
--- a/examples/visualComponents/generalComponents/button/ImageButton/pom.xml
+++ b/examples/visualComponents/generalComponents/button/ImageButton/pom.xml
@@ -29,11 +29,11 @@
 	<relativePath>../../../../pom.xml</relativePath>
   </parent>
 
-  <artifactId>TextButton</artifactId>
+  <artifactId>ImageButton</artifactId>
   <version>0.1.0-SNAPSHOT</version>
   <packaging>swf</packaging>
 
-  <name>Apache Flex - FlexJS: Examples: FlexJS: TextButton</name>
+  <name>Apache Flex - FlexJS: Examples: FlexJS: ImageButton</name>
 
   <build>
     <sourceDirectory>src/main/flex</sourceDirectory>
@@ -47,7 +47,7 @@
             <flashVersion>${version.flash}</flashVersion>
 		    <debug>${compiler.debug}</debug>
 			<outputJavaScript>true</outputJavaScript>
-			<mainClass>TextButton.mxml</mainClass>
+			<mainClass>ImageButton.mxml</mainClass>
           </configuration>
           <dependencies>
             <dependency>
@@ -89,12 +89,50 @@
         <configuration>
           <artifacts>
             <artifact>
-              <file>target/textbutton-0.1.0-SNAPSHOT.war</file>
+              <file>target/imagebutton-0.1.0-SNAPSHOT.war</file>
               <type>war</type>
             </artifact>
           </artifacts>
         </configuration>
       </plugin>
+	    <plugin>
+			<artifactId>maven-resources-plugin</artifactId>
+			<version>3.0.2</version>
+			<executions>
+			  <execution>
+				<id>imagebutton-src</id>
+				<phase>install</phase>
+				<goals>
+				  <goal>copy-resources</goal>
+				</goals>
+				<configuration>
+				  <outputDirectory>../../../../../TourJS/src/main/resources/content/${imagebutton.module}/src/main/flex</outputDirectory>
+				  <resources>          
+					<resource>
+					  <directory>src</directory>
+					  <filtering>true</filtering>
+					</resource>
+				  </resources>              
+				</configuration>            
+			  </execution>
+			  <execution>
+				<id>imagebutton-js-release</id>
+				<phase>install</phase>
+				<goals>
+				  <goal>copy-resources</goal>
+				</goals>
+				<configuration>
+				  <outputDirectory>../../../../../TourJS/src/main/resources/content/${imagebutton.module}/bin/js-release</outputDirectory>
+				  <resources>          
+					<resource>
+					  <directory>target/javascript/bin/js-release</directory>
+					  <filtering>true</filtering>
+					</resource>
+				  </resources>              
+				</configuration>            
+			  </execution>
+			</executions>
+		</plugin>
     </plugins>
 	</build>
   <dependencies>

http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/ad528116/examples/visualComponents/generalComponents/button/TextButton/pom.xml
----------------------------------------------------------------------
diff --git a/examples/visualComponents/generalComponents/button/TextButton/pom.xml b/examples/visualComponents/generalComponents/button/TextButton/pom.xml
index 8ca3aca..dcbb7a8 100644
--- a/examples/visualComponents/generalComponents/button/TextButton/pom.xml
+++ b/examples/visualComponents/generalComponents/button/TextButton/pom.xml
@@ -95,6 +95,44 @@
           </artifacts>
         </configuration>
       </plugin>
+	  <plugin>
+			<artifactId>maven-resources-plugin</artifactId>
+			<version>3.0.2</version>
+			<executions>
+			  <execution>
+				<id>textbutton-src</id>
+				<phase>install</phase>
+				<goals>
+				  <goal>copy-resources</goal>
+				</goals>
+				<configuration>
+				  <outputDirectory>../../../../../TourJS/src/main/resources/content/${textbutton.module}/src/main/flex</outputDirectory>
+				  <resources>          
+					<resource>
+					  <directory>src</directory>
+					  <filtering>true</filtering>
+					</resource>
+				  </resources>              
+				</configuration>            
+			  </execution>
+			  <execution>
+				<id>textbutton-js-release</id>
+				<phase>install</phase>
+				<goals>
+				  <goal>copy-resources</goal>
+				</goals>
+				<configuration>
+				  <outputDirectory>../../../../../TourJS/src/main/resources/content/${textbutton.module}/bin/js-release</outputDirectory>
+				  <resources>          
+					<resource>
+					  <directory>target/javascript/bin/js-release</directory>
+					  <filtering>true</filtering>
+					</resource>
+				  </resources>              
+				</configuration>            
+			  </execution>
+			</executions>
+		</plugin>
     </plugins>
 	</build>
   <dependencies>

http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/ad528116/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 1f173ad..b883ad1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
   <packaging>pom</packaging> 
   
   <properties>
-    <compiler.debug>true</compiler.debug>
+    <compiler.debug>false</compiler.debug>
     <compiler.output-dir>target/javascript/bin/js-debug</compiler.output-dir>
 	<version.flexjs>0.8.0-SNAPSHOT</version.flexjs>
 	<version.flash>20.0</version.flash>