http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/components/packager/packager-war/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/components/packager/packager-war/pom.xml b/flex-maven-tools/maven-flex-plugin/components/packager/packager-war/pom.xml deleted file mode 100644 index 1ee8825..0000000 --- a/flex-maven-tools/maven-flex-plugin/components/packager/packager-war/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ -<?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/xsd/maven-4.0.0.xsd"> - - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.flex.components</groupId> - <artifactId>packager</artifactId> - <version>1.0.0-SNAPSHOT</version> - </parent> - - <groupId>org.apache.flex.components</groupId> - <artifactId>packager-war</artifactId> - <version>1.0.0-SNAPSHOT</version> - <packaging>jar</packaging> - - <name>Maven-Flex-Plugin / Components / Packager / WAR</name> - - <dependencies> - <dependency> - <groupId>org.apache.flex.components</groupId> - <artifactId>api</artifactId> - <version>1.0.0-SNAPSHOT</version> - </dependency> - </dependencies> - -</project> \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/components/packager/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/components/packager/pom.xml b/flex-maven-tools/maven-flex-plugin/components/packager/pom.xml deleted file mode 100644 index d0793ae..0000000 --- a/flex-maven-tools/maven-flex-plugin/components/packager/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ -<?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/xsd/maven-4.0.0.xsd"> - - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.flex.components</groupId> - <artifactId>components</artifactId> - <version>1.0.0-SNAPSHOT</version> - </parent> - - <groupId>org.apache.flex.components</groupId> - <artifactId>packager</artifactId> - <version>1.0.0-SNAPSHOT</version> - <packaging>pom</packaging> - - <name>Maven-Flex-Plugin / Components / Packager</name> - - <modules> - <module>packager-war</module> - <module>packager-air</module> - </modules> - -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/components/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/components/pom.xml b/flex-maven-tools/maven-flex-plugin/components/pom.xml deleted file mode 100644 index c374076..0000000 --- a/flex-maven-tools/maven-flex-plugin/components/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ -<?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/xsd/maven-4.0.0.xsd"> - - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.flex</groupId> - <artifactId>flex-plugin-parent</artifactId> - <version>1.0.0-SNAPSHOT</version> - </parent> - - <groupId>org.apache.flex.components</groupId> - <artifactId>components</artifactId> - <version>1.0.0-SNAPSHOT</version> - <packaging>pom</packaging> - - <name>Maven-Flex-Plugin / Components</name> - - <modules> - <module>api</module> - <!-- Generate code --> - <module>generator</module> - <!-- Flex & ActionScript compiler --> - <module>compiler</module> - <!-- Integrate the execution of Flexunit tests --> - <module>test</module> - <!-- Optimize SWFs and SWCs --> - <module>optimizer</module> - <!-- Copy a Flex projects resources to a war project --> - <module>packager</module> - </modules> - -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/components/test/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/components/test/pom.xml b/flex-maven-tools/maven-flex-plugin/components/test/pom.xml deleted file mode 100644 index f1cdd31..0000000 --- a/flex-maven-tools/maven-flex-plugin/components/test/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ -<?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/xsd/maven-4.0.0.xsd"> - - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.flex.components</groupId> - <artifactId>components</artifactId> - <version>1.0.0-SNAPSHOT</version> - </parent> - - <groupId>org.apache.flex.components</groupId> - <artifactId>test</artifactId> - <version>1.0.0-SNAPSHOT</version> - <packaging>pom</packaging> - - <name>Maven-Flex-Plugin / Components / Test</name> - - <modules> - <module>test-flexunit</module> - <module>test-lib</module> - </modules> - -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/components/test/test-flexunit/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/components/test/test-flexunit/pom.xml b/flex-maven-tools/maven-flex-plugin/components/test/test-flexunit/pom.xml deleted file mode 100644 index 28f7149..0000000 --- a/flex-maven-tools/maven-flex-plugin/components/test/test-flexunit/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ -<?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/xsd/maven-4.0.0.xsd"> - - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.flex.components</groupId> - <artifactId>test</artifactId> - <version>1.0.0-SNAPSHOT</version> - </parent> - - <groupId>org.apache.flex.components</groupId> - <artifactId>test-flexunit</artifactId> - <version>1.0.0-SNAPSHOT</version> - <packaging>jar</packaging> - - <name>Maven-Flex-Plugin / Components / Test / FlexUnit</name> - - <dependencies> - <dependency> - <groupId>org.apache.flex.components</groupId> - <artifactId>api</artifactId> - <version>1.0.0-SNAPSHOT</version> - </dependency> - </dependencies> - -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/components/test/test-lib/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/components/test/test-lib/pom.xml b/flex-maven-tools/maven-flex-plugin/components/test/test-lib/pom.xml deleted file mode 100644 index 21c4f1e..0000000 --- a/flex-maven-tools/maven-flex-plugin/components/test/test-lib/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?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/xsd/maven-4.0.0.xsd"> - - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.flex.components</groupId> - <artifactId>test</artifactId> - <version>1.0.0-SNAPSHOT</version> - </parent> - - <groupId>org.apache.flex.components</groupId> - <artifactId>test-lib</artifactId> - <version>1.0.0-SNAPSHOT</version> - <packaging>jar</packaging> - - <name>Maven-Flex-Plugin / Components / Test / Client-Lib</name> - -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/pom.xml deleted file mode 100644 index be3046a..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/pom.xml +++ /dev/null @@ -1,76 +0,0 @@ -<?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.flexjs</groupId> - <artifactId>flexjs</artifactId> - <version>1.0.0-SNAPSHOT</version> - </parent> - - <artifactId>flexjs-hello-world</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>FlexJSTest_basic.mxml</sourceFile> - <compilerName>Falcon</compilerName> - <!--compilerName>FlexJS</compilerName--> - <debug>true</debug> - </configuration> - <dependencies> - <dependency> - <groupId>org.apache.flex.compiler</groupId> - <artifactId>falcon-jx-compiler</artifactId> - <version>0.0.3-SNAPSHOT</version> - </dependency> - </dependencies> - </plugin> - </plugins> - </build> - - <dependencies> - <dependency> - <groupId>org.apache.flex.flexjs</groupId> - <artifactId>framework</artifactId> - <version>0.0.3-SNAPSHOT</version> - <type>pom</type> - </dependency> - <!-- This is still only needed to satisfy check in Flexmojos --> - <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/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/FlexJSTest_basic.mxml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/FlexJSTest_basic.mxml b/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/FlexJSTest_basic.mxml deleted file mode 100644 index b000196..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/FlexJSTest_basic.mxml +++ /dev/null @@ -1,53 +0,0 @@ -<?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. - ---> -<basic:Application xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:local="*" - xmlns:basic="library://ns.apache.org/flexjs/basic" - xmlns:models="models.*" - xmlns:controllers="controllers.*" - initialize="MyModel(model).labelText='Hello World'"> - - <fx:Script><![CDATA[ import models.MyModel; ]]></fx:Script> - - <basic:valuesImpl> - <basic:SimpleCSSValuesImpl /> - </basic:valuesImpl> - <basic:initialView> - <local:MyInitialView /> - </basic:initialView> - <basic:model> - <models:MyModel /> - </basic:model> - <basic:controller> - <controllers:MyController /> - </basic:controller> - <basic:beads> - <basic:HTTPService id="service"> - <basic:LazyCollection id="collection"> - <basic:inputParser> - <basic:JSONInputParser /> - </basic:inputParser> - <basic:itemConverter> - <local:StockDataJSONItemConverter /> - </basic:itemConverter> - </basic:LazyCollection> - </basic:HTTPService> - </basic:beads> -</basic:Application> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/MyInitialView.mxml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/MyInitialView.mxml b/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/MyInitialView.mxml deleted file mode 100644 index 9a910cc..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/MyInitialView.mxml +++ /dev/null @@ -1,143 +0,0 @@ -<?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. - ---> -<basic:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:basic="library://ns.apache.org/flexjs/basic" - > - <fx:Script> - <![CDATA[ - import org.apache.flex.events.CustomEvent; - import org.apache.flex.events.Event; - import org.apache.flex.utils.Timer; - - private var timer:org.apache.flex.utils.Timer; - - public function get symbol():String - { - return list.selectedItem as String; - } - - public function get city():String - { - return cityList.selectedItem as String; - } - - public function get inputText():String - { - return input.text; - } - - public function get comboBoxValue():String - { - return String(comboBox.selectedItem); - } - - public function startTimer():void - { - timer = new org.apache.flex.utils.Timer(1000); - timer.addEventListener('timer', timerHandler); - timer.start() - } - - public function timerHandler(event:org.apache.flex.events.Event):void - { - timerLabel.text = timer.currentCount.toString(); - } - ]]> - </fx:Script> - <fx:Style> - @namespace basic "library://ns.apache.org/flexjs/basic"; - - .skinned { - background-image: url('ButtonImageUp.png'); - border-style: none; - } - - .skinned:hover { - background-image: url('ButtonImageOver.png'); - } - - .skinned:active { - background-image: url('ButtonImageDown.png'); - } - - </fx:Style> - <basic:Label id="lbl" x="100" y="25" > - <basic:beads> - <basic:SimpleBinding eventName="labelTextChanged" - sourceID="applicationModel" - sourcePropertyName="labelText" - destinationPropertyName="text" /> - </basic:beads> - </basic:Label> - <basic:TextButton text="Start Timer" x="100" y="75" click="startTimer()" /> - <basic:TextButton text="Stop Timer" x="100" y="100" click="timer.removeEventListener('timer', timerHandler);timer.stop()" /> - <basic:Label id="timerLabel" x="100" y="125" /> - - <basic:List id="cityList" x="200" y="75" width="100" height="75" change="dispatchEvent(new CustomEvent('cityListChanged'))"> - <basic:beads> - <basic:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="cities" - destinationPropertyName="dataProvider" /> - </basic:beads> - </basic:List> - - <basic:TextArea x="320" y="25" width="150" height="75"> - <basic:beads> - <basic:SimpleBinding eventName="labelTextChanged" - sourceID="applicationModel" - sourcePropertyName="labelText" - destinationPropertyName="text" /> - </basic:beads> - </basic:TextArea> - <basic:TextInput id="input" x="320" y="110" /> - <basic:TextButton text="Transfer" x="320" y="138" click="dispatchEvent(new CustomEvent('transferClicked'))" /> - - <basic:CheckBox id="checkbox" x="320" y="170" text="Check Me" /> - - <basic:RadioButton groupName="group1" text="Apples" value="0" x="100" y="150" /> - <basic:RadioButton groupName="group1" text="Oranges" value="1" x="100" y="170" selected="true" /> - <basic:RadioButton groupName="group1" text="Grapes" value="2" x="100" y="190" /> - - <basic:RadioButton groupName="group2" text="Red" value="red" x="100" y="250" selected="true" /> - <basic:RadioButton groupName="group2" text="Green" value="green" x="100" y="270" /> - <basic:RadioButton groupName="group2" text="Blue" value="blue" x="100" y="290" /> - - <basic:DropDownList id="list" x="200" y="200" width="100" height="18" change="dispatchEvent(new CustomEvent('listChanged'))"> - <basic:beads> - <basic:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="strings" - destinationPropertyName="dataProvider" /> - </basic:beads> - </basic:DropDownList> - <basic:TextButton text="OK" x="200" y="230" click="dispatchEvent(new CustomEvent('buttonClicked'))" /> - <basic:TextButton text="Skinned" x="200" y="260" width="80" height="24" className="skinned" click="dispatchEvent(new CustomEvent('buttonClicked'))" /> - - <basic:ComboBox id="comboBox" x="320" y="200" width="100" change="dispatchEvent(new CustomEvent('comboBoxChanged'))"> - <basic:beads> - <basic:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="cities" - destinationPropertyName="dataProvider" /> - </basic:beads> - </basic:ComboBox> - -</basic:ViewBase> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/StockDataJSONItemConverter.as ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/StockDataJSONItemConverter.as b/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/StockDataJSONItemConverter.as deleted file mode 100644 index 5ad0c38..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/StockDataJSONItemConverter.as +++ /dev/null @@ -1,38 +0,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. -// -//////////////////////////////////////////////////////////////////////////////// -package -{ -import org.apache.flex.collections.converters.JSONItemConverter; - - public class StockDataJSONItemConverter extends JSONItemConverter - { - public function StockDataJSONItemConverter() - { - super(); - } - - override public function convertItem(data:String):Object - { - var obj:Object = super.convertItem(data); - if (obj['query']['results'] == null) - return 'No Quote Available'; - return obj['query']['results']['quote']['Ask']; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/controllers/MyController.as ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/controllers/MyController.as b/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/controllers/MyController.as deleted file mode 100644 index 636ed30..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/controllers/MyController.as +++ /dev/null @@ -1,92 +0,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. -// -//////////////////////////////////////////////////////////////////////////////// -package controllers -{ - import org.apache.flex.core.Application; - import org.apache.flex.core.IDocument; - import org.apache.flex.events.Event; - - - import models.MyModel; - - public class MyController implements IDocument - { - public function MyController(app:Application = null) - { - if (app) - { - this.app = app as FlexJSTest_basic; - app.addEventListener("viewChanged", viewChangeHandler); - } - } - - private var queryBegin:String = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22"; - private var queryEnd:String = "%22)%0A%09%09&env=http%3A%2F%2Fdatatables.org%2Falltables.env&format=json"; - private var app:FlexJSTest_basic; - - private function viewChangeHandler(event:Event):void - { - app.initialView.addEventListener("buttonClicked", buttonClickHandler); - app.initialView.addEventListener("listChanged", listChangedHandler); - app.initialView.addEventListener("cityListChanged", cityListChangeHandler); - app.initialView.addEventListener("transferClicked", transferClickHandler); - app.initialView.addEventListener("comboBoxChanged", comboBoxChangeHandler); - } - - private function buttonClickHandler(event:Event):void - { - var sym:String = MyInitialView(app.initialView).symbol; - app.service.url = queryBegin + sym + queryEnd; - app.service.send(); - app.service.addEventListener("complete", completeHandler); - } - - private function completeHandler(event:Event):void - { - MyModel(app.model).labelText = app.collection.getItemAt(0) as String; - } - - private function listChangedHandler(event:Event):void - { - MyModel(app.model).labelText = MyInitialView(app.initialView).symbol; - } - - private function cityListChangeHandler(event:Event):void - { - MyModel(app.model).labelText = MyInitialView(app.initialView).city; - } - - private function transferClickHandler(event:Event):void - { - MyModel(app.model).labelText = MyInitialView(app.initialView).inputText; - } - - private function comboBoxChangeHandler(event:Event):void - { - MyModel(app.model).labelText = MyInitialView(app.initialView).comboBoxValue; - } - - public function setDocument(document:Object, id:String = null):void - { - this.app = document as FlexJSTest_basic; - app.addEventListener("viewChanged", viewChangeHandler); - } - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/models/MyModel.as ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/models/MyModel.as b/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/models/MyModel.as deleted file mode 100644 index 1dc23e6..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/models/MyModel.as +++ /dev/null @@ -1,59 +0,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. -// -//////////////////////////////////////////////////////////////////////////////// -package models -{ - import org.apache.flex.events.Event; - import org.apache.flex.events.EventDispatcher; - - public class MyModel extends EventDispatcher - { - public function MyModel() - { - } - - private var _labelText:String; - - public function get labelText():String - { - return _labelText; - } - - public function set labelText(value:String):void - { - if (value != _labelText) - { - _labelText = value; - dispatchEvent(new Event("labelTextChanged")); - } - } - - private var _strings:Array = ["AAPL", "ADBE", "GOOG", "MSFT", "YHOO"]; - public function get strings():Array - { - return _strings; - } - - private var _cities:Array = ["London", "Miami", "Paris", "Sydney", "Tokyo"]; - public function get cities():Array - { - return _cities; - } - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/flexjs/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/flexjs/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/flexjs/pom.xml deleted file mode 100644 index 8d01b07..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/flexjs/pom.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?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.flexjs</groupId> - <artifactId>flexjs</artifactId> - <version>1.0.0-SNAPSHOT</version> - <packaging>pom</packaging> - - <modules> - <module>flexjs-hello-world</module> - </modules> - -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/pom.xml deleted file mode 100644 index be807ff..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/pom.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?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-locales</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/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/pom.xml deleted file mode 100644 index 4c23e35..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/pom.xml +++ /dev/null @@ -1,77 +0,0 @@ -<?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-locales</artifactId> - <version>1.0.0-SNAPSHOT</version> - </parent> - - <artifactId>compiled-locales-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> - <debug>true</debug> - <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/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/flex/Main.mxml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/flex/Main.mxml b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/flex/Main.mxml deleted file mode 100644 index a449ab7..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/flex/Main.mxml +++ /dev/null @@ -1,49 +0,0 @@ -<?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"> - - <fx:Metadata> - [ResourceBundle("myresources")] - </fx:Metadata> - - <fx:Script> - <![CDATA[ - import mx.collections.ArrayCollection; - - import spark.events.IndexChangeEvent; - - [Bindable] - private var locales:ArrayCollection = new ArrayCollection([{label:"English", locale:"en_US"}, - {label:"German", locale:"de_DE"}]); - - private function onLanguageChange(event:IndexChangeEvent):void { - resourceManager.localeChain = [localeSelector.selectedItem.locale]; - } - - ]]> - </fx:Script> - - <s:VGroup> - <s:ComboBox id="localeSelector" dataProvider="{locales}" change="onLanguageChange(event)"/> - <s:Label text="{resourceManager.getString('myresources','greeting')}"/> - </s:VGroup> - -</s:Application> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/de_DE/myresources.properties ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/de_DE/myresources.properties b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/de_DE/myresources.properties deleted file mode 100644 index f792b93..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/de_DE/myresources.properties +++ /dev/null @@ -1,19 +0,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. -## -################################################################################ -greeting=Hallo Welt! \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/en_US/myresources.properties ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/en_US/myresources.properties b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/en_US/myresources.properties deleted file mode 100644 index ba8ac99..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/en_US/myresources.properties +++ /dev/null @@ -1,19 +0,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. -## -################################################################################ -greeting=Hello World! \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/pom.xml deleted file mode 100644 index b68bd30..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/pom.xml +++ /dev/null @@ -1,124 +0,0 @@ -<?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-locales</artifactId> - <version>1.0.0-SNAPSHOT</version> - </parent> - - <artifactId>compiled-locales-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>compiled-locales-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-locales-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/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/src/main/webapp/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/src/main/webapp/WEB-INF/web.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 8dd835a..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?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/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/pom.xml deleted file mode 100644 index bff39bc..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/pom.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?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>locale-chains</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/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/pom.xml deleted file mode 100644 index 6d71468..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/pom.xml +++ /dev/null @@ -1,79 +0,0 @@ -<?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>locale-chains</artifactId> - <version>1.0.0-SNAPSHOT</version> - </parent> - - <artifactId>locale-chains-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> - <debug>true</debug> - <localesCompiled> - <locale>en_US</locale> - <locale>en_GB,en_US</locale> - <locale>de_DE</locale> - <locale>de_AT,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/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/flex/Main.mxml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/flex/Main.mxml b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/flex/Main.mxml deleted file mode 100644 index 3f2cdad..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/flex/Main.mxml +++ /dev/null @@ -1,63 +0,0 @@ -<?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"> - - <fx:Metadata> - [ResourceBundle("myresources")] - </fx:Metadata> - - <fx:Script> - <![CDATA[ - import mx.collections.ArrayCollection; - - import spark.events.IndexChangeEvent; - - [Bindable] - private var locales:ArrayCollection = new ArrayCollection([ - {label:"US English", locale:"en_US"}, - {label:"British English", locale:"en_GB,en_US"}, - {label:"German", locale:"de_DE,en_US"}, - {label:"Austrian German", locale:"de_AT,de_DE,en_US"} - ]); - - private function onLanguageChange(event:IndexChangeEvent):void { - resourceManager.localeChain = getLocaleChain(localeSelector.selectedItem.locale); - } - - private function getLocaleChain(str:String):Array { - var result:Array = []; - for each(var locale:String in str.split(",")) { - result.push(locale); - } - return result; - } - - ]]> - </fx:Script> - - <s:VGroup> - <s:ComboBox id="localeSelector" dataProvider="{locales}" change="onLanguageChange(event)"/> - <s:Label text="{resourceManager.getString('myresources','hotDrink')}"/> - <s:Label text="{resourceManager.getString('myresources','coldDrink')}"/> - <s:Label text="{resourceManager.getString('myresources','strangeDrink')}"/> - </s:VGroup> - -</s:Application> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_AT/myresources.properties ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_AT/myresources.properties b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_AT/myresources.properties deleted file mode 100644 index c48d822..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_AT/myresources.properties +++ /dev/null @@ -1,19 +0,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. -## -################################################################################ -hotDrink=Haferl Kaffee \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_DE/myresources.properties ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_DE/myresources.properties b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_DE/myresources.properties deleted file mode 100644 index ca4e20e..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_DE/myresources.properties +++ /dev/null @@ -1,20 +0,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. -## -################################################################################ -hotDrink=Tasse Kaffee -coldDrink=Bier \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_GB/myresources.properties ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_GB/myresources.properties b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_GB/myresources.properties deleted file mode 100644 index b020332..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_GB/myresources.properties +++ /dev/null @@ -1,19 +0,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. -## -################################################################################ -hotDrink=Cup of tee \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_US/myresources.properties ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_US/myresources.properties b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_US/myresources.properties deleted file mode 100644 index 6959d2c..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_US/myresources.properties +++ /dev/null @@ -1,21 +0,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. -## -################################################################################ -hotDrink=Cup of coffee -coldDrink=Beer -strangeDrink=Red Bull \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/pom.xml deleted file mode 100644 index e837c60..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/pom.xml +++ /dev/null @@ -1,124 +0,0 @@ -<?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>locale-chains</artifactId> - <version>1.0.0-SNAPSHOT</version> - </parent> - - <artifactId>locale-chains-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>locale-chains-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>locale-chains-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/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/src/main/webapp/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/src/main/webapp/WEB-INF/web.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 8dd835a..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?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/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/pom.xml deleted file mode 100644 index 26c6cc0..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ -<?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> - <module>locale-chains</module> - </modules> - -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/pom.xml deleted file mode 100644 index 3a3a8d2..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/pom.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?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-locales</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/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/pom.xml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/pom.xml deleted file mode 100644 index 54818c6..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/pom.xml +++ /dev/null @@ -1,77 +0,0 @@ -<?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-locales</artifactId> - <version>1.0.0-SNAPSHOT</version> - </parent> - - <artifactId>runtime-locales-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> - <debug>true</debug> - <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/8bc0350d/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/flex/Main.mxml ---------------------------------------------------------------------- diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/flex/Main.mxml b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/flex/Main.mxml deleted file mode 100644 index db86365..0000000 --- a/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/flex/Main.mxml +++ /dev/null @@ -1,80 +0,0 @@ -<?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" - creationComplete="onCreationComplete(event)"> - - <fx:Metadata> - [ResourceBundle("myresources")] - </fx:Metadata> - - <fx:Script> - <![CDATA[ - import mx.collections.ArrayCollection; - import mx.events.FlexEvent; - import mx.events.ResourceEvent; - import mx.modules.ModuleBase; - - import spark.events.IndexChangeEvent; - - // Actually I don't quite know why I need to do this ... - // without it, I get an error, that this class is missing. - private var tst:ModuleBase = null; - - [Bindable] - private var locales:ArrayCollection = new ArrayCollection([{label: "English", locale: "en_US"}, - {label: "German", locale: "de_DE"}]); - - private function onCreationComplete(event:FlexEvent):void { - if("en" == Capabilities.language) { - localeSelector.selectedItem = locales.getItemAt(0); - } else if("de" == Capabilities.language) { - localeSelector.selectedItem = locales.getItemAt(1); - } - onLanguageChange(); - } - - private function onLanguageChange(event:IndexChangeEvent = null):void { - var selectedLocale:String = String(localeSelector.selectedItem.locale); - - // Ensure that you are not loading the same resource module more than once. - if (resourceManager.getLocales().indexOf(selectedLocale) != -1) { - completeHandler(null); - } else { - var resourceModuleURL:String = - "./locales/runtime-locales-swf-1.0.0-SNAPSHOT-" + selectedLocale + ".swf"; - var eventDispatcher:IEventDispatcher = resourceManager.loadResourceModule(resourceModuleURL); - eventDispatcher.addEventListener(ResourceEvent.COMPLETE, completeHandler); - } - } - - private function completeHandler(event:ResourceEvent):void { - resourceManager.localeChain = [localeSelector.selectedItem.locale]; - } - - ]]> - </fx:Script> - - <s:VGroup> - <s:ComboBox id="localeSelector" dataProvider="{locales}" change="onLanguageChange(event)"/> - <s:Label text="{resourceManager.getString('myresources','greeting')}"/> - </s:VGroup> - -</s:Application>
