You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cd...@apache.org on 2015/04/25 12:09:24 UTC
[1/2] git commit: [flex-utilities] [refs/heads/develop] - - Fine
tuned the wrapper generation
Repository: flex-utilities
Updated Branches:
refs/heads/develop 1a46b1127 -> 2b7f3e956
- Fine tuned the wrapper generation
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/dd6d4194
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/dd6d4194
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/dd6d4194
Branch: refs/heads/develop
Commit: dd6d4194f4c1b21fed64612785338a6716fa2125
Parents: 1a46b11
Author: Christofer Dutz <ch...@codecentric.de>
Authored: Sat Apr 25 12:07:47 2015 +0200
Committer: Christofer Dutz <ch...@codecentric.de>
Committed: Sat Apr 25 12:07:47 2015 +0200
----------------------------------------------------------------------
.../converter/wrapper/WrapperConverter.java | 16 +++++++++++-----
.../converter/mavenextension/FlexEventSpy.java | 3 ++-
2 files changed, 13 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/dd6d4194/mavenizer/converters/wrapper/src/main/java/org/apache/flex/utilities/converter/wrapper/WrapperConverter.java
----------------------------------------------------------------------
diff --git a/mavenizer/converters/wrapper/src/main/java/org/apache/flex/utilities/converter/wrapper/WrapperConverter.java b/mavenizer/converters/wrapper/src/main/java/org/apache/flex/utilities/converter/wrapper/WrapperConverter.java
index 6a2b691..7e4af4c 100644
--- a/mavenizer/converters/wrapper/src/main/java/org/apache/flex/utilities/converter/wrapper/WrapperConverter.java
+++ b/mavenizer/converters/wrapper/src/main/java/org/apache/flex/utilities/converter/wrapper/WrapperConverter.java
@@ -32,19 +32,25 @@ public class WrapperConverter extends BaseConverter implements Converter {
}
try {
- final File wrapperJar = File.createTempFile("SWFObjectWrapper-2.2", ".jar");
- generateZip(wrapperRootDir.listFiles(), wrapperJar);
+ // Rename the index.template.html to index.html
+ File indexHtml = new File(wrapperRootDir, "index.template.html");
+ if(!indexHtml.renameTo(new File(wrapperRootDir, "index.html"))) {
+ System.out.println("Could not rename index.template.html to index.html.");
+ }
+
+ final File wrapperWar = File.createTempFile("SWFObjectWrapper-2.2", ".war");
+ generateZip(wrapperRootDir.listFiles(), wrapperWar);
final MavenArtifact swfobjectWrapper = new MavenArtifact();
swfobjectWrapper.setGroupId("org.apache.flex.wrapper");
swfobjectWrapper.setArtifactId("swfobject");
swfobjectWrapper.setVersion(getFlexVersion(rootSourceDirectory));
- swfobjectWrapper.setPackaging("jar");
- swfobjectWrapper.addDefaultBinaryArtifact(wrapperJar);
+ swfobjectWrapper.setPackaging("war");
+ swfobjectWrapper.addDefaultBinaryArtifact(wrapperWar);
writeArtifact(swfobjectWrapper);
} catch (IOException e) {
- throw new ConverterException("Error creating wrapper jar.", e);
+ throw new ConverterException("Error creating wrapper war.", e);
}
}
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/dd6d4194/mavenizer/maven-extension/src/main/java/org/apache/flex/utilities/converter/mavenextension/FlexEventSpy.java
----------------------------------------------------------------------
diff --git a/mavenizer/maven-extension/src/main/java/org/apache/flex/utilities/converter/mavenextension/FlexEventSpy.java b/mavenizer/maven-extension/src/main/java/org/apache/flex/utilities/converter/mavenextension/FlexEventSpy.java
index e946db0..9adf892 100644
--- a/mavenizer/maven-extension/src/main/java/org/apache/flex/utilities/converter/mavenextension/FlexEventSpy.java
+++ b/mavenizer/maven-extension/src/main/java/org/apache/flex/utilities/converter/mavenextension/FlexEventSpy.java
@@ -131,7 +131,8 @@ public class FlexEventSpy extends AbstractEventSpy {
// In order to compile some of the themes, we need to download a
// playerglobal version.
- logger.info("In order to convert the Apache Flex SDK, a Flash SDK has to be downloaded.");
+ logger.info("In order to convert some of the skins in the Apache Flex SDK, " +
+ "a Flash SDK has to be downloaded.");
File flashSdkRoot = downloadRetriever.retrieve(SdkType.FLASH, "10.2");
FileUtils.copyDirectory(flashSdkRoot, sdkRoot);
[2/2] git commit: [flex-utilities] [refs/heads/develop] - - Started
setting up an example project consisting of multiple projects that all
demonstrate the stuff described in the Flex Wiki Tutorials
Posted by cd...@apache.org.
- Started setting up an example project consisting of multiple projects that all demonstrate the stuff described in the Flex Wiki Tutorials
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/2b7f3e95
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/2b7f3e95
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/2b7f3e95
Branch: refs/heads/develop
Commit: 2b7f3e956ef47d2febb097087117cf091f152886
Parents: dd6d419
Author: Christofer Dutz <ch...@codecentric.de>
Authored: Sat Apr 25 12:09:08 2015 +0200
Committer: Christofer Dutz <ch...@codecentric.de>
Committed: Sat Apr 25 12:09:08 2015 +0200
----------------------------------------------------------------------
.../examples/i18n/compiled-locales/pom.xml | 40 ++++++
.../examples/i18n/compiled-locales/swf/pom.xml | 76 ++++++++++++
.../swf/src/main/flex/Main.mxml | 30 +++++
.../main/locales/de_DE/myresources.properties | 19 +++
.../main/locales/en_US/myresources.properties | 19 +++
.../examples/i18n/compiled-locales/war/pom.xml | 124 +++++++++++++++++++
.../war/src/main/webapp/WEB-INF/web.xml | 31 +++++
maven-flex-plugin/examples/i18n/pom.xml | 41 ++++++
.../examples/i18n/runtime-locales/pom.xml | 40 ++++++
.../examples/i18n/runtime-locales/swf/pom.xml | 76 ++++++++++++
.../runtime-locales/swf/src/main/flex/Main.mxml | 30 +++++
.../main/locales/de_DE/myresources.properties | 19 +++
.../main/locales/en_US/myresources.properties | 19 +++
.../examples/i18n/runtime-locales/war/pom.xml | 124 +++++++++++++++++++
.../war/src/main/webapp/WEB-INF/web.xml | 31 +++++
maven-flex-plugin/examples/pom.xml | 105 ++++++++++++++++
16 files changed, 824 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/compiled-locales/pom.xml
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/compiled-locales/pom.xml b/maven-flex-plugin/examples/i18n/compiled-locales/pom.xml
new file mode 100644
index 0000000..83d1e60
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/compiled-locales/pom.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<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>
+
+ <parent>
+ <groupId>org.apache.flex.examples.i18n</groupId>
+ <artifactId>i18n</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>compiled-locals</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>swf</module>
+ <module>war</module>
+ </modules>
+
+</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/compiled-locales/swf/pom.xml
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/compiled-locales/swf/pom.xml b/maven-flex-plugin/examples/i18n/compiled-locales/swf/pom.xml
new file mode 100644
index 0000000..a15264c
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/compiled-locales/swf/pom.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<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>
+
+ <parent>
+ <groupId>org.apache.flex.examples.i18n</groupId>
+ <artifactId>compiled-locals</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>compiled-locals-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>
+ <configuration>
+ <localesCompiled>
+ <locale>en_US</locale>
+ <locale>de_DE</locale>
+ </localesCompiled>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.flex</groupId>
+ <artifactId>compiler</artifactId>
+ <version>4.14.1</version>
+ <type>pom</type>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.flex</groupId>
+ <artifactId>framework</artifactId>
+ <version>4.14.1</version>
+ <type>pom</type>
+ </dependency>
+ <dependency>
+ <groupId>com.adobe.flash.framework</groupId>
+ <artifactId>playerglobal</artifactId>
+ <version>14.0</version>
+ <type>swc</type>
+ </dependency>
+ </dependencies>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/flex/Main.mxml
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/flex/Main.mxml b/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/flex/Main.mxml
new file mode 100644
index 0000000..ea188bc
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/flex/Main.mxml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:mx="library://ns.adobe.com/flex/mx">
+
+ <fx:Metadata>
+ [ResourceBundle("myresources")]
+ </fx:Metadata>
+
+ <s:Label text="{resourceManager.getString('myresources','greeting')}"/>
+
+</s:Application>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/de_DE/myresources.properties
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/de_DE/myresources.properties b/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/de_DE/myresources.properties
new file mode 100644
index 0000000..f792b93
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/de_DE/myresources.properties
@@ -0,0 +1,19 @@
+################################################################################
+##
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements. See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+################################################################################
+greeting=Hallo Welt!
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/en_US/myresources.properties
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/en_US/myresources.properties b/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/en_US/myresources.properties
new file mode 100644
index 0000000..ba8ac99
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/en_US/myresources.properties
@@ -0,0 +1,19 @@
+################################################################################
+##
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements. See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+################################################################################
+greeting=Hello World!
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/compiled-locales/war/pom.xml
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/compiled-locales/war/pom.xml b/maven-flex-plugin/examples/i18n/compiled-locales/war/pom.xml
new file mode 100644
index 0000000..e646f0a
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/compiled-locales/war/pom.xml
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<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>
+
+ <parent>
+ <groupId>org.apache.flex.examples.i18n</groupId>
+ <artifactId>compiled-locals</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>compiled-locals-war</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>war</packaging>
+
+ <!--
+ Properties used in the wrapper template, used by maven-war-plugin to
+ perform the filtering.
+ -->
+ <properties>
+ <swf>swf-1.0.0-SNAPSHOT</swf>
+ <width>100%</width>
+ <height>100%</height>
+ <title>My First Application</title>
+ <useBrowserHistory>true</useBrowserHistory>
+ <bgcolor>white</bgcolor>
+ <version_major>10</version_major>
+ <version_minor>2</version_minor>
+ <version_revision>0</version_revision>
+ <expressInstallSwf>expressInstall.swf</expressInstallSwf>
+ <application>application</application>
+ </properties>
+
+ <build>
+ <plugins>
+ <!--
+ Copy all the flex related resources (SWFs, RSLs, ...)
+ -->
+ <plugin>
+ <groupId>net.flexmojos.oss</groupId>
+ <artifactId>flexmojos-maven-plugin</artifactId>
+ <version>7.1.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>copy-flex-resources</goal>
+ </goals>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.flex</groupId>
+ <artifactId>compiler</artifactId>
+ <version>4.14.1</version>
+ <type>pom</type>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <!--
+ Builds the war and copies the flex default wrapper template.
+ -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <overlays>
+ <overlay>
+ <groupId>org.apache.flex.wrapper</groupId>
+ <artifactId>swfobject</artifactId>
+ <type>war</type>
+ <filtered>true</filtered>
+ </overlay>
+ </overlays>
+ </configuration>
+ </plugin>
+ <!--
+ Make the war project "runnable" by running mvn jetty:run
+ -->
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty-plugin</artifactId>
+ <version>6.1.17</version>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.flex.examples.i18n</groupId>
+ <artifactId>compiled-locals-swf</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <type>swf</type>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.flex.wrapper</groupId>
+ <artifactId>swfobject</artifactId>
+ <version>4.14.1</version>
+ <type>war</type>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/compiled-locales/war/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/compiled-locales/war/src/main/webapp/WEB-INF/web.xml b/maven-flex-plugin/examples/i18n/compiled-locales/war/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..8dd835a
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/compiled-locales/war/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ id="WebApp_ID" version="2.5">
+
+ <display-name>war war</display-name>
+
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ </welcome-file-list>
+
+</web-app>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/pom.xml
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/pom.xml b/maven-flex-plugin/examples/i18n/pom.xml
new file mode 100644
index 0000000..ac118df
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/pom.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<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>
+
+ <parent>
+ <groupId>org.apache.flex.examples</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.apache.flex.examples.i18n</groupId>
+ <artifactId>i18n</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>compiled-locales</module>
+ <module>runtime-locales</module>
+ </modules>
+
+</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/runtime-locales/pom.xml
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/runtime-locales/pom.xml b/maven-flex-plugin/examples/i18n/runtime-locales/pom.xml
new file mode 100644
index 0000000..635fc80
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/runtime-locales/pom.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<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>
+
+ <parent>
+ <groupId>org.apache.flex.examples.i18n</groupId>
+ <artifactId>i18n</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>runtime-locals</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>swf</module>
+ <module>war</module>
+ </modules>
+
+</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/runtime-locales/swf/pom.xml
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/runtime-locales/swf/pom.xml b/maven-flex-plugin/examples/i18n/runtime-locales/swf/pom.xml
new file mode 100644
index 0000000..d6f6f7d
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/runtime-locales/swf/pom.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<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>
+
+ <parent>
+ <groupId>org.apache.flex.examples.i18n</groupId>
+ <artifactId>runtime-locals</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>runtime-locals-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>
+ <configuration>
+ <localesRuntime>
+ <locale>en_US</locale>
+ <locale>de_DE</locale>
+ </localesRuntime>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.flex</groupId>
+ <artifactId>compiler</artifactId>
+ <version>4.14.1</version>
+ <type>pom</type>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.flex</groupId>
+ <artifactId>framework</artifactId>
+ <version>4.14.1</version>
+ <type>pom</type>
+ </dependency>
+ <dependency>
+ <groupId>com.adobe.flash.framework</groupId>
+ <artifactId>playerglobal</artifactId>
+ <version>14.0</version>
+ <type>swc</type>
+ </dependency>
+ </dependencies>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/flex/Main.mxml
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/flex/Main.mxml b/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/flex/Main.mxml
new file mode 100644
index 0000000..ea188bc
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/flex/Main.mxml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:mx="library://ns.adobe.com/flex/mx">
+
+ <fx:Metadata>
+ [ResourceBundle("myresources")]
+ </fx:Metadata>
+
+ <s:Label text="{resourceManager.getString('myresources','greeting')}"/>
+
+</s:Application>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/de_DE/myresources.properties
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/de_DE/myresources.properties b/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/de_DE/myresources.properties
new file mode 100644
index 0000000..f792b93
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/de_DE/myresources.properties
@@ -0,0 +1,19 @@
+################################################################################
+##
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements. See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+################################################################################
+greeting=Hallo Welt!
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/en_US/myresources.properties
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/en_US/myresources.properties b/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/en_US/myresources.properties
new file mode 100644
index 0000000..ba8ac99
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/en_US/myresources.properties
@@ -0,0 +1,19 @@
+################################################################################
+##
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements. See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+################################################################################
+greeting=Hello World!
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/runtime-locales/war/pom.xml
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/runtime-locales/war/pom.xml b/maven-flex-plugin/examples/i18n/runtime-locales/war/pom.xml
new file mode 100644
index 0000000..1403603
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/runtime-locales/war/pom.xml
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<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>
+
+ <parent>
+ <groupId>org.apache.flex.examples.i18n</groupId>
+ <artifactId>runtime-locals</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>runtime-locals-war</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>war</packaging>
+
+ <!--
+ Properties used in the wrapper template, used by maven-war-plugin to
+ perform the filtering.
+ -->
+ <properties>
+ <swf>swf-1.0.0-SNAPSHOT</swf>
+ <width>100%</width>
+ <height>100%</height>
+ <title>My First Application</title>
+ <useBrowserHistory>true</useBrowserHistory>
+ <bgcolor>white</bgcolor>
+ <version_major>10</version_major>
+ <version_minor>2</version_minor>
+ <version_revision>0</version_revision>
+ <expressInstallSwf>expressInstall.swf</expressInstallSwf>
+ <application>application</application>
+ </properties>
+
+ <build>
+ <plugins>
+ <!--
+ Copy all the flex related resources (SWFs, RSLs, ...)
+ -->
+ <plugin>
+ <groupId>net.flexmojos.oss</groupId>
+ <artifactId>flexmojos-maven-plugin</artifactId>
+ <version>7.1.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>copy-flex-resources</goal>
+ </goals>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.flex</groupId>
+ <artifactId>compiler</artifactId>
+ <version>4.14.1</version>
+ <type>pom</type>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <!--
+ Builds the war and copies the flex default wrapper template.
+ -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <overlays>
+ <overlay>
+ <groupId>org.apache.flex.wrapper</groupId>
+ <artifactId>swfobject</artifactId>
+ <type>war</type>
+ <filtered>true</filtered>
+ </overlay>
+ </overlays>
+ </configuration>
+ </plugin>
+ <!--
+ Make the war project "runnable" by running mvn jetty:run
+ -->
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty-plugin</artifactId>
+ <version>6.1.17</version>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.flex.examples.i18n</groupId>
+ <artifactId>runtime-locals-swf</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <type>swf</type>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.flex.wrapper</groupId>
+ <artifactId>swfobject</artifactId>
+ <version>4.14.1</version>
+ <type>war</type>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/i18n/runtime-locales/war/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/i18n/runtime-locales/war/src/main/webapp/WEB-INF/web.xml b/maven-flex-plugin/examples/i18n/runtime-locales/war/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..8dd835a
--- /dev/null
+++ b/maven-flex-plugin/examples/i18n/runtime-locales/war/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ id="WebApp_ID" version="2.5">
+
+ <display-name>war war</display-name>
+
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ </welcome-file-list>
+
+</web-app>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2b7f3e95/maven-flex-plugin/examples/pom.xml
----------------------------------------------------------------------
diff --git a/maven-flex-plugin/examples/pom.xml b/maven-flex-plugin/examples/pom.xml
new file mode 100644
index 0000000..36f9a77
--- /dev/null
+++ b/maven-flex-plugin/examples/pom.xml
@@ -0,0 +1,105 @@
+<?xml version="1.0"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<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.examples</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>i18n</module>
+ </modules>
+
+ <repositories>
+ <!--
+ This is where we get released stuff from.
+ -->
+ <repository>
+ <id>maven-central</id>
+ <url>http://repo1.maven.org/maven2/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <!--
+ This is where we get unreleased Apache stuff from
+ -->
+ <repository>
+ <id>apache-snapshots</id>
+ <url>http://repository.apache.org/snapshots/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ <!--
+ This is where we get unreleased Flexmojos stuff from.
+ -->
+ <repository>
+ <id>sonatype-snapshots</id>
+ <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <pluginRepositories>
+ <!--
+ This is where we get released stuff from.
+ -->
+ <pluginRepository>
+ <id>maven-central</id>
+ <url>http://repo1.maven.org/maven2/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </pluginRepository>
+ <!--
+ This is where we get unreleased Flexmojos stuff from.
+ -->
+ <pluginRepository>
+ <id>sonatype-snapshots</id>
+ <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+
+</project>
\ No newline at end of file