Repository: flex-falcon Updated Branches: refs/heads/feature/flexmojos-tests [created] 3a612a3ff
Added a suite of flexmojos projects, that each address a problem identified when using falcon as a compiler instead of the default compiler. Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/3a612a3f Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/3a612a3f Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/3a612a3f Branch: refs/heads/feature/flexmojos-tests Commit: 3a612a3ff104c82458e79c0ebfadc47fc690e27d Parents: c932239 Author: Christofer Dutz <[email protected]> Authored: Fri Oct 24 10:11:00 2014 +0200 Committer: Christofer Dutz <[email protected]> Committed: Fri Oct 24 10:11:00 2014 +0200 ---------------------------------------------------------------------- .../air-test-swf-not-runnable/pom.xml | 66 ++++++++++++++++ .../src/main/flex/TestClass.as | 13 ++++ .../src/test/flex/TestClassTest.as | 16 ++++ flexmojos-tests/conditional-compilation/pom.xml | 56 +++++++++++++ .../src/main/flex/TestApplication.mxml | 26 +++++++ .../css-with-missing-namespace/pom.xml | 44 +++++++++++ .../src/main/flex/CssStyledApplication.mxml | 9 +++ .../src/main/flex/styles.css | 4 + flexmojos-tests/css-with-namespace/pom.xml | 44 +++++++++++ .../src/main/flex/CssStyledApplication.mxml | 9 +++ .../css-with-namespace/src/main/flex/styles.css | 6 ++ flexmojos-tests/generated-sources/pom.xml | 70 +++++++++++++++++ .../src/main/flex/TestApplication.mxml | 19 +++++ .../main/flex/org/apache/flex/swc/SWCDigest.as | 15 ++++ flexmojos-tests/l10n-locales-runtime/pom.xml | 60 ++++++++++++++ .../src/main/flex/TestApplication.mxml | 20 +++++ .../src/main/locales/de_DE/test.properties | 1 + .../src/main/locales/en_US/test.properties | 1 + flexmojos-tests/mx-as-module/pom.xml | 50 ++++++++++++ .../mx-as-module/src/main/flex/test/MxModule.as | 10 +++ flexmojos-tests/mx-mxml-module/pom.xml | 50 ++++++++++++ .../src/main/flex/test/MxModule.mxml | 6 ++ .../no-embedding-of-resources/pom.xml | 66 ++++++++++++++++ .../src/main/flex/TestApplication.mxml | 16 ++++ .../src/main/resources/logo.png | Bin 0 -> 17508 bytes flexmojos-tests/no-font-embedding/pom.xml | 61 +++++++++++++++ .../src/main/flex/TestApplication.mxml | 20 +++++ .../src/main/flex/pf_ronda_seven.ttf | Bin 0 -> 22392 bytes flexmojos-tests/optimize-swc/pom.xml | 60 ++++++++++++++ .../optimize-swc/src/main/flex/TestClass.as | 9 +++ flexmojos-tests/optimize-swf/pom.xml | 63 +++++++++++++++ .../src/main/flex/TestApplication.mxml | 7 ++ flexmojos-tests/pom.xml | 78 +++++++++++++++++++ flexmojos-tests/spark-as-module/pom.xml | 50 ++++++++++++ .../src/main/flex/test/SparkModule.as | 10 +++ flexmojos-tests/spark-mxml-module/pom.xml | 50 ++++++++++++ .../src/main/flex/test/SparkModule.mxml | 6 ++ 37 files changed, 1091 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/air-test-swf-not-runnable/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/air-test-swf-not-runnable/pom.xml b/flexmojos-tests/air-test-swf-not-runnable/pom.xml new file mode 100644 index 0000000..1b2c458 --- /dev/null +++ b/flexmojos-tests/air-test-swf-not-runnable/pom.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>test-swf-not-runnable</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swc</packaging> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <testSourceDirectory>src/test/flex</testSourceDirectory> + <plugins> + <plugin> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-maven-plugin</artifactId> + <version>7.1.0-SNAPSHOT</version> + <extensions>true</extensions> + <dependencies> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>com.adobe.air</groupId> + <artifactId>compiler</artifactId> + <version>13.0</version> + <type>pom</type> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>framework</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>org.apache.flex.framework</groupId> + <artifactId>air</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>com.adobe.air</groupId> + <artifactId>framework</artifactId> + <version>13.0</version> + <type>pom</type> + </dependency> + + <dependency> + <groupId>org.flexunit</groupId> + <artifactId>flexunit</artifactId> + <version>4.1.0</version> + <classifier>flex4</classifier> + <type>swc</type> + <scope>test</scope> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/air-test-swf-not-runnable/src/main/flex/TestClass.as ---------------------------------------------------------------------- diff --git a/flexmojos-tests/air-test-swf-not-runnable/src/main/flex/TestClass.as b/flexmojos-tests/air-test-swf-not-runnable/src/main/flex/TestClass.as new file mode 100644 index 0000000..0da38b5 --- /dev/null +++ b/flexmojos-tests/air-test-swf-not-runnable/src/main/flex/TestClass.as @@ -0,0 +1,13 @@ +/** + * Created by christoferdutz on 23.10.14. + */ +package { +public class TestClass { + public function TestClass() { + } + + public function getLabel():String { + return "Test Label"; + } +} +} http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/air-test-swf-not-runnable/src/test/flex/TestClassTest.as ---------------------------------------------------------------------- diff --git a/flexmojos-tests/air-test-swf-not-runnable/src/test/flex/TestClassTest.as b/flexmojos-tests/air-test-swf-not-runnable/src/test/flex/TestClassTest.as new file mode 100644 index 0000000..0d1ec5d --- /dev/null +++ b/flexmojos-tests/air-test-swf-not-runnable/src/test/flex/TestClassTest.as @@ -0,0 +1,16 @@ +/** + * Created by christoferdutz on 23.10.14. + */ +package { +import flexunit.framework.Assert; + +public class TestClassTest { + + [Test] + public function testSomething():void { + var obj:TestClass = new TestClass(); + Assert.assertEquals(obj.getLabel(), "Test Label"); + } + +} +} http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/conditional-compilation/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/conditional-compilation/pom.xml b/flexmojos-tests/conditional-compilation/pom.xml new file mode 100644 index 0000000..7992547 --- /dev/null +++ b/flexmojos-tests/conditional-compilation/pom.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>conditional-compilation</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swc</packaging> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-maven-plugin</artifactId> + <version>7.1.0-SNAPSHOT</version> + <extensions>true</extensions> + <configuration> + <defines> + <property> + <name>CONFIG::ConditionMeet</name> + <value>true</value> + </property> + <property> + <name>CONFIG::LabelMessage</name> + <value>This text is brought to you by conditional compilation</value> + </property> + </defines> + </configuration> + <dependencies> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>framework</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>13.0</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/conditional-compilation/src/main/flex/TestApplication.mxml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/conditional-compilation/src/main/flex/TestApplication.mxml b/flexmojos-tests/conditional-compilation/src/main/flex/TestApplication.mxml new file mode 100644 index 0000000..38811cc --- /dev/null +++ b/flexmojos-tests/conditional-compilation/src/main/flex/TestApplication.mxml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<!-- + Created by christoferdutz on 22.10.14. +--> +<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark" + creationComplete="onCreationComplete(event)"> + + <fx:Script> + <![CDATA[ + import mx.events.FlexEvent; + + [Bindable] + public var labelMessage:* = CONFIG::LabelMessage; + + private function onCreationComplete(event:FlexEvent):void { + CONFIG::ConditionMeet { + label.text = labelMessage; + } + } + ]]> + </fx:Script> + + <s:Label id="label" text="Generated Sources"/> + +</s:Application> http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/css-with-missing-namespace/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/css-with-missing-namespace/pom.xml b/flexmojos-tests/css-with-missing-namespace/pom.xml new file mode 100644 index 0000000..8a76a31 --- /dev/null +++ b/flexmojos-tests/css-with-missing-namespace/pom.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>css-with-missing-namespace</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swc</packaging> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-maven-plugin</artifactId> + <version>7.1.0-SNAPSHOT</version> + <extensions>true</extensions> + <dependencies> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>framework</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>13.0</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/css-with-missing-namespace/src/main/flex/CssStyledApplication.mxml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/css-with-missing-namespace/src/main/flex/CssStyledApplication.mxml b/flexmojos-tests/css-with-missing-namespace/src/main/flex/CssStyledApplication.mxml new file mode 100644 index 0000000..7fe0272 --- /dev/null +++ b/flexmojos-tests/css-with-missing-namespace/src/main/flex/CssStyledApplication.mxml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<s:Application xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:fx="http://ns.adobe.com/mxml/2009" layout="absolute"> + + <fx:Style source="styles.css"/> + + <s:Label text="Test"/> + +</s:Application> http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/css-with-missing-namespace/src/main/flex/styles.css ---------------------------------------------------------------------- diff --git a/flexmojos-tests/css-with-missing-namespace/src/main/flex/styles.css b/flexmojos-tests/css-with-missing-namespace/src/main/flex/styles.css new file mode 100644 index 0000000..61e3425 --- /dev/null +++ b/flexmojos-tests/css-with-missing-namespace/src/main/flex/styles.css @@ -0,0 +1,4 @@ +Label +{ + fontSize: 10px; +} http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/css-with-namespace/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/css-with-namespace/pom.xml b/flexmojos-tests/css-with-namespace/pom.xml new file mode 100644 index 0000000..3a5e5b6 --- /dev/null +++ b/flexmojos-tests/css-with-namespace/pom.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>css-with-namespace</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swc</packaging> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-maven-plugin</artifactId> + <version>7.1.0-SNAPSHOT</version> + <extensions>true</extensions> + <dependencies> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>framework</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>13.0</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/css-with-namespace/src/main/flex/CssStyledApplication.mxml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/css-with-namespace/src/main/flex/CssStyledApplication.mxml b/flexmojos-tests/css-with-namespace/src/main/flex/CssStyledApplication.mxml new file mode 100644 index 0000000..7fe0272 --- /dev/null +++ b/flexmojos-tests/css-with-namespace/src/main/flex/CssStyledApplication.mxml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<s:Application xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:fx="http://ns.adobe.com/mxml/2009" layout="absolute"> + + <fx:Style source="styles.css"/> + + <s:Label text="Test"/> + +</s:Application> http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/css-with-namespace/src/main/flex/styles.css ---------------------------------------------------------------------- diff --git a/flexmojos-tests/css-with-namespace/src/main/flex/styles.css b/flexmojos-tests/css-with-namespace/src/main/flex/styles.css new file mode 100644 index 0000000..4ce4482 --- /dev/null +++ b/flexmojos-tests/css-with-namespace/src/main/flex/styles.css @@ -0,0 +1,6 @@ +@namespace s "library://ns.adobe.com/flex/spark"; + +s|Label +{ + fontSize: 10px; +} http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/generated-sources/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/generated-sources/pom.xml b/flexmojos-tests/generated-sources/pom.xml new file mode 100644 index 0000000..22714c4 --- /dev/null +++ b/flexmojos-tests/generated-sources/pom.xml @@ -0,0 +1,70 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>generated-sources</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swf</packaging> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-maven-plugin</artifactId> + <version>7.1.0-SNAPSHOT</version> + <extensions>true</extensions> + <executions> + <execution> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <includeJavaClasses> + <class>org.apache.flex.swc.SWCDigest</class> + </includeJavaClasses> + </configuration> + </execution> + </executions> + <dependencies> + <!--dependency> + <groupId>org.apache.flex</groupId> + <artifactId>compiler</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency--> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>framework</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>13.0</version> + <type>swc</type> + </dependency> + + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + <scope>provided</scope> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/generated-sources/src/main/flex/TestApplication.mxml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/generated-sources/src/main/flex/TestApplication.mxml b/flexmojos-tests/generated-sources/src/main/flex/TestApplication.mxml new file mode 100644 index 0000000..9deda1e --- /dev/null +++ b/flexmojos-tests/generated-sources/src/main/flex/TestApplication.mxml @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<!-- + Created by christoferdutz on 22.10.14. +--> +<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark"> + + <fx:Script> + <![CDATA[ + import org.apache.flex.swc.SWCDigest; + + var digest:SWCDigest = new SWCDigest(); + + ]]> + </fx:Script> + + <s:Label text="Generated Sources"/> + +</s:Application> http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/generated-sources/src/main/flex/org/apache/flex/swc/SWCDigest.as ---------------------------------------------------------------------- diff --git a/flexmojos-tests/generated-sources/src/main/flex/org/apache/flex/swc/SWCDigest.as b/flexmojos-tests/generated-sources/src/main/flex/org/apache/flex/swc/SWCDigest.as new file mode 100644 index 0000000..e800961 --- /dev/null +++ b/flexmojos-tests/generated-sources/src/main/flex/org/apache/flex/swc/SWCDigest.as @@ -0,0 +1,15 @@ +/** + * Generated by Gas3 v2.3.2 (Granite Data Services). + * + * NOTE: this file is only generated if it does not exist. You may safely put + * your custom code here. + */ + +package org.apache.flex.swc { + + [Bindable] + [RemoteClass(alias="org.apache.flex.swc.SWCDigest")] + public class SWCDigest extends SWCDigestBase { + } + +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/l10n-locales-runtime/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/l10n-locales-runtime/pom.xml b/flexmojos-tests/l10n-locales-runtime/pom.xml new file mode 100644 index 0000000..b86df49 --- /dev/null +++ b/flexmojos-tests/l10n-locales-runtime/pom.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>l10n-locales-runtime</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swf</packaging> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-maven-plugin</artifactId> + <version>7.1.0-SNAPSHOT</version> + <extensions>true</extensions> + <configuration> + <sourceFile>TestApplication.mxml</sourceFile> + <localesRuntime> + <locale>en_US</locale> + <locale>de_DE</locale> + </localesRuntime> + </configuration> + <dependencies> + <!--dependency> + <groupId>org.apache.flex</groupId> + <artifactId>compiler</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency--> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>framework</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>13.0</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/l10n-locales-runtime/src/main/flex/TestApplication.mxml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/l10n-locales-runtime/src/main/flex/TestApplication.mxml b/flexmojos-tests/l10n-locales-runtime/src/main/flex/TestApplication.mxml new file mode 100644 index 0000000..7fe12b7 --- /dev/null +++ b/flexmojos-tests/l10n-locales-runtime/src/main/flex/TestApplication.mxml @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<!-- + Created by christoferdutz on 23.10.14. +--> +<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark"> + + <fx:Metadata> + [ResourceBundle("test")] + </fx:Metadata> + + <fx:Script> + <![CDATA[ + private static const BUNDLE_NAME:String = "test"; + ]]> + </fx:Script> + + <s:Label text="Mxml Processing {resourceManager.getString(BUNDLE_NAME, 'testlabel')}"/> + +</s:Application> http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/l10n-locales-runtime/src/main/locales/de_DE/test.properties ---------------------------------------------------------------------- diff --git a/flexmojos-tests/l10n-locales-runtime/src/main/locales/de_DE/test.properties b/flexmojos-tests/l10n-locales-runtime/src/main/locales/de_DE/test.properties new file mode 100644 index 0000000..7c9f2a7 --- /dev/null +++ b/flexmojos-tests/l10n-locales-runtime/src/main/locales/de_DE/test.properties @@ -0,0 +1 @@ +testlabel=Deutsch \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/l10n-locales-runtime/src/main/locales/en_US/test.properties ---------------------------------------------------------------------- diff --git a/flexmojos-tests/l10n-locales-runtime/src/main/locales/en_US/test.properties b/flexmojos-tests/l10n-locales-runtime/src/main/locales/en_US/test.properties new file mode 100644 index 0000000..d6bbf7c --- /dev/null +++ b/flexmojos-tests/l10n-locales-runtime/src/main/locales/en_US/test.properties @@ -0,0 +1 @@ +testlabel=English \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/mx-as-module/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/mx-as-module/pom.xml b/flexmojos-tests/mx-as-module/pom.xml new file mode 100644 index 0000000..82e4139 --- /dev/null +++ b/flexmojos-tests/mx-as-module/pom.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>mx-as-module</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swf</packaging> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-maven-plugin</artifactId> + <version>7.1.0-SNAPSHOT</version> + <extensions>true</extensions> + <configuration> + <sourceFile>test/MxModule.as</sourceFile> + </configuration> + <dependencies> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>framework</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>13.0</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/mx-as-module/src/main/flex/test/MxModule.as ---------------------------------------------------------------------- diff --git a/flexmojos-tests/mx-as-module/src/main/flex/test/MxModule.as b/flexmojos-tests/mx-as-module/src/main/flex/test/MxModule.as new file mode 100644 index 0000000..6aecddd --- /dev/null +++ b/flexmojos-tests/mx-as-module/src/main/flex/test/MxModule.as @@ -0,0 +1,10 @@ +package test { + +import mx.modules.Module; + +public class MxModule extends Module { + public function MxModule() { + super(); + } +} +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/mx-mxml-module/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/mx-mxml-module/pom.xml b/flexmojos-tests/mx-mxml-module/pom.xml new file mode 100644 index 0000000..bb45be1 --- /dev/null +++ b/flexmojos-tests/mx-mxml-module/pom.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>mx-mxml-module</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swf</packaging> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-maven-plugin</artifactId> + <version>7.1.0-SNAPSHOT</version> + <extensions>true</extensions> + <configuration> + <sourceFile>test/SparkModule.mxml</sourceFile> + </configuration> + <dependencies> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>framework</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>13.0</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/mx-mxml-module/src/main/flex/test/MxModule.mxml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/mx-mxml-module/src/main/flex/test/MxModule.mxml b/flexmojos-tests/mx-mxml-module/src/main/flex/test/MxModule.mxml new file mode 100644 index 0000000..ac18213 --- /dev/null +++ b/flexmojos-tests/mx-mxml-module/src/main/flex/test/MxModule.mxml @@ -0,0 +1,6 @@ +<mx:Module xmlns:mx="library://ns.adobe.com/flex/mx" + xmlns:fx="http://ns.adobe.com/mxml/2009" layout="absolute"> + + <mx:Label text="MX-Based Module"/> + +</mx:Module> http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/no-embedding-of-resources/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/no-embedding-of-resources/pom.xml b/flexmojos-tests/no-embedding-of-resources/pom.xml new file mode 100644 index 0000000..b541ed4 --- /dev/null +++ b/flexmojos-tests/no-embedding-of-resources/pom.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>no-embedding-of-resources</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swf</packaging> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <resources> + <resource> + <directory>src/main/resources</directory> + </resource> + </resources> + <plugins> + <plugin> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-maven-plugin</artifactId> + <version>7.1.0-SNAPSHOT</version> + <extensions>true</extensions> + <configuration> + <sourceFile>TestApplication.mxml</sourceFile> + </configuration> + <dependencies> + <dependency> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId> + <version>7.1.0-SNAPSHOT</version> + </dependency> + <!--dependency> + <groupId>org.apache.flex</groupId> + <artifactId>compiler</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency--> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>framework</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>13.0</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/no-embedding-of-resources/src/main/flex/TestApplication.mxml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/no-embedding-of-resources/src/main/flex/TestApplication.mxml b/flexmojos-tests/no-embedding-of-resources/src/main/flex/TestApplication.mxml new file mode 100644 index 0000000..1375a57 --- /dev/null +++ b/flexmojos-tests/no-embedding-of-resources/src/main/flex/TestApplication.mxml @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark"> + + <fx:Script> + <![CDATA[ + + [Embed(source="/logo.png")] + private var flexLogo:Class; + + ]]> + </fx:Script> + + <s:Label text="Font Embedding"/> + +</s:Application> http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/no-embedding-of-resources/src/main/resources/logo.png ---------------------------------------------------------------------- diff --git a/flexmojos-tests/no-embedding-of-resources/src/main/resources/logo.png b/flexmojos-tests/no-embedding-of-resources/src/main/resources/logo.png new file mode 100644 index 0000000..92787bf Binary files /dev/null and b/flexmojos-tests/no-embedding-of-resources/src/main/resources/logo.png differ http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/no-font-embedding/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/no-font-embedding/pom.xml b/flexmojos-tests/no-font-embedding/pom.xml new file mode 100644 index 0000000..a2397a5 --- /dev/null +++ b/flexmojos-tests/no-font-embedding/pom.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>no-font-embedding</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swf</packaging> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-maven-plugin</artifactId> + <version>7.1.0-SNAPSHOT</version> + <extensions>true</extensions> + <configuration> + <sourceFile>TestApplication.mxml</sourceFile> + </configuration> + <dependencies> + <dependency> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId> + <version>7.1.0-SNAPSHOT</version> + </dependency> + <!--dependency> + <groupId>org.apache.flex</groupId> + <artifactId>compiler</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency--> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>framework</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>13.0</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/no-font-embedding/src/main/flex/TestApplication.mxml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/no-font-embedding/src/main/flex/TestApplication.mxml b/flexmojos-tests/no-font-embedding/src/main/flex/TestApplication.mxml new file mode 100644 index 0000000..5993c85 --- /dev/null +++ b/flexmojos-tests/no-font-embedding/src/main/flex/TestApplication.mxml @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<!-- + Created by christoferdutz on 23.10.14. +--> +<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark"> + + + <fx:Script> + <![CDATA[ + + [Embed(source="/pf_ronda_seven.ttf", fontName="PF Ronda Seven", mimeType="application/x-font")] + private var ronda:Class; + + ]]> + </fx:Script> + + <s:Label text="Font Embedding"/> + +</s:Application> http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/no-font-embedding/src/main/flex/pf_ronda_seven.ttf ---------------------------------------------------------------------- diff --git a/flexmojos-tests/no-font-embedding/src/main/flex/pf_ronda_seven.ttf b/flexmojos-tests/no-font-embedding/src/main/flex/pf_ronda_seven.ttf new file mode 100644 index 0000000..0bbf3aa Binary files /dev/null and b/flexmojos-tests/no-font-embedding/src/main/flex/pf_ronda_seven.ttf differ http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/optimize-swc/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/optimize-swc/pom.xml b/flexmojos-tests/optimize-swc/pom.xml new file mode 100644 index 0000000..eba2a47 --- /dev/null +++ b/flexmojos-tests/optimize-swc/pom.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>optimize-swc</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swc</packaging> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-maven-plugin</artifactId> + <version>7.1.0-SNAPSHOT</version> + <extensions>true</extensions> + <executions> + <execution> + <goals> + <goal>create-rsl</goal> + </goals> + </execution> + </executions> + <dependencies> + <!--dependency> + <groupId>org.apache.flex</groupId> + <artifactId>compiler</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency--> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>framework</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>13.0</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/optimize-swc/src/main/flex/TestClass.as ---------------------------------------------------------------------- diff --git a/flexmojos-tests/optimize-swc/src/main/flex/TestClass.as b/flexmojos-tests/optimize-swc/src/main/flex/TestClass.as new file mode 100644 index 0000000..ebdb1cc --- /dev/null +++ b/flexmojos-tests/optimize-swc/src/main/flex/TestClass.as @@ -0,0 +1,9 @@ +/** + * Created by christoferdutz on 23.10.14. + */ +package { +public class TestClass { + public function TestClass() { + } +} +} http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/optimize-swf/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/optimize-swf/pom.xml b/flexmojos-tests/optimize-swf/pom.xml new file mode 100644 index 0000000..776de01 --- /dev/null +++ b/flexmojos-tests/optimize-swf/pom.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>optimize-swf</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swf</packaging> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-maven-plugin</artifactId> + <version>7.1.0-SNAPSHOT</version> + <extensions>true</extensions> + <executions> + <execution> + <goals> + <goal>optimize-swf</goal> + </goals> + </execution> + </executions> + <configuration> + <sourceFile>TestApplication.mxml</sourceFile> + </configuration> + <dependencies> + <!--dependency> + <groupId>org.apache.flex</groupId> + <artifactId>compiler</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency--> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>framework</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>13.0</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/optimize-swf/src/main/flex/TestApplication.mxml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/optimize-swf/src/main/flex/TestApplication.mxml b/flexmojos-tests/optimize-swf/src/main/flex/TestApplication.mxml new file mode 100644 index 0000000..5653eaa --- /dev/null +++ b/flexmojos-tests/optimize-swf/src/main/flex/TestApplication.mxml @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark"> + + <s:Label text="Optimized SWF"/> + +</s:Application> http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/pom.xml b/flexmojos-tests/pom.xml new file mode 100644 index 0000000..c7c73ff --- /dev/null +++ b/flexmojos-tests/pom.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>identified-problems</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>pom</packaging> + + <modules> + <!-- + Problem area: ASDoc doesn't work at all. + --> + + <!-- + Problem area: Compiling of MXML Modules + - It seems that compiling of mxml based modules does not work + - Compiling of AS modules does however work + --> + <module>mx-mxml-module</module> + <module>mx-as-module</module> + <module>spark-mxml-module</module> + <module>spark-as-module</module> + + <!-- + Problem area: CSS Style with missing namespace produces NullPointerException + --> + <module>css-with-missing-namespace</module> + <module>css-with-namespace</module> + + <!-- + Problem area: Generated sources with multiple source paths + - The application compiles, but is ony executable in flashplayer without + errors, when compiled with the default compiler. + --> + <module>generated-sources</module> + + <!-- + Problem area: It seems that compiler defines can be used for + conditional compilations, but you can't access the value directly. + --> + <module>conditional-compilation</module> + + <!-- + Problem area: When compiling a test swf for an air module, the compile + succeeds, but adl is not able to execute it and returns error code 9. + (Tried with Air output as well as air swc library compilation) + --> + <module>air-test-swf-not-runnable</module> + + <!-- + Problem area: It seems that runtime loaded locales don't work in Falcon + --> + <module>l10n-locales-runtime</module> + + <!-- + Problem area: It seems FontEmbedding is currently completely disabled. + But still it seems that locating the embedded fonts in a resources directory + will prevent Falcon from finding it. + --> + <module>no-font-embedding</module> + + <!-- + Problem area: Embeding of images (or other static resrouces) + --> + <module>no-embedding-of-resources</module> + + <!-- + Problem area: It seems the SWF files produced by Falcon are not optimizable + by Apparat. + --> + <module>optimize-swf</module> + <module>optimize-swc</module> + </modules> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/spark-as-module/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/spark-as-module/pom.xml b/flexmojos-tests/spark-as-module/pom.xml new file mode 100644 index 0000000..fd1e2be --- /dev/null +++ b/flexmojos-tests/spark-as-module/pom.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>spark-as-module</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swf</packaging> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-maven-plugin</artifactId> + <version>7.1.0-SNAPSHOT</version> + <extensions>true</extensions> + <configuration> + <sourceFile>test/SparkModule.as</sourceFile> + </configuration> + <dependencies> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>framework</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>13.0</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/spark-as-module/src/main/flex/test/SparkModule.as ---------------------------------------------------------------------- diff --git a/flexmojos-tests/spark-as-module/src/main/flex/test/SparkModule.as b/flexmojos-tests/spark-as-module/src/main/flex/test/SparkModule.as new file mode 100644 index 0000000..e30f1fe --- /dev/null +++ b/flexmojos-tests/spark-as-module/src/main/flex/test/SparkModule.as @@ -0,0 +1,10 @@ +package test { + +import spark.modules.Module; + +public class SparkModule extends Module { + public function SparkModule() { + super(); + } +} +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/spark-mxml-module/pom.xml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/spark-mxml-module/pom.xml b/flexmojos-tests/spark-mxml-module/pom.xml new file mode 100644 index 0000000..7e962f1 --- /dev/null +++ b/flexmojos-tests/spark-mxml-module/pom.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex.compiler.falcon.tests</groupId> + <artifactId>spark-mxml-module</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>swf</packaging> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>net.flexmojos.oss</groupId> + <artifactId>flexmojos-maven-plugin</artifactId> + <version>7.1.0-SNAPSHOT</version> + <extensions>true</extensions> + <configuration> + <sourceFile>test/SparkModule.mxml</sourceFile> + </configuration> + <dependencies> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>falcon-compiler</artifactId> + <version>0.0.3-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>framework</artifactId> + <version>4.13.0.20140701</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>13.0</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3a612a3f/flexmojos-tests/spark-mxml-module/src/main/flex/test/SparkModule.mxml ---------------------------------------------------------------------- diff --git a/flexmojos-tests/spark-mxml-module/src/main/flex/test/SparkModule.mxml b/flexmojos-tests/spark-mxml-module/src/main/flex/test/SparkModule.mxml new file mode 100644 index 0000000..9f2cdff --- /dev/null +++ b/flexmojos-tests/spark-mxml-module/src/main/flex/test/SparkModule.mxml @@ -0,0 +1,6 @@ +<s:Module xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:fx="http://ns.adobe.com/mxml/2009" layout="absolute"> + + <s:Label text="Spark-Based Module"/> + +</s:Module>
