Repository: flex-tourjs Updated Branches: refs/heads/develop 90bc8e5e8 -> c60ab1c9c
- Add initial version of build by Maven - examples + TourJS Project: http://git-wip-us.apache.org/repos/asf/flex-tourjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-tourjs/commit/c60ab1c9 Tree: http://git-wip-us.apache.org/repos/asf/flex-tourjs/tree/c60ab1c9 Diff: http://git-wip-us.apache.org/repos/asf/flex-tourjs/diff/c60ab1c9 Branch: refs/heads/develop Commit: c60ab1c9c8f5a3e2cd9bb3b46962c76f87d9dbd3 Parents: 90bc8e5 Author: piotrz <[email protected]> Authored: Tue Jan 24 21:28:05 2017 +0100 Committer: piotrz <[email protected]> Committed: Tue Jan 24 21:28:05 2017 +0100 ---------------------------------------------------------------------- TourJS/pom.xml | 10 +- examples/pom.xml | 20 +++ .../generalComponents/button/pom.xml | 134 +++++++++++++++++++ .../button/src/main/flex/Button.mxml | 30 +++++ pom.xml | 15 +++ 5 files changed, 207 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/c60ab1c9/TourJS/pom.xml ---------------------------------------------------------------------- diff --git a/TourJS/pom.xml b/TourJS/pom.xml index 113ff13..eab2141 100644 --- a/TourJS/pom.xml +++ b/TourJS/pom.xml @@ -22,7 +22,13 @@ 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> - <groupId>org.apache.flex</groupId> + <parent> + <groupId>org.apache.flex</groupId> + <artifactId>tourjs</artifactId> + <version>0.1.0-SNAPSHOT</version> + </parent> + + <groupId>org.apache.flex.tourjs</groupId> <artifactId>tourjs</artifactId> <version>0.1.0-SNAPSHOT</version> <packaging>swf</packaging> @@ -104,7 +110,7 @@ </build> <dependencies> - <dependency> + <dependency> <groupId>org.apache.flex.flexjs.framework</groupId> <artifactId>Core</artifactId> <version>0.8.0-SNAPSHOT</version> http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/c60ab1c9/examples/pom.xml ---------------------------------------------------------------------- diff --git a/examples/pom.xml b/examples/pom.xml new file mode 100644 index 0000000..5d112bc --- /dev/null +++ b/examples/pom.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex</groupId> + <artifactId>tourjs</artifactId> + <version>0.1.0-SNAPSHOT</version> + </parent> + + <groupId>org.apache.flex.tourjs</groupId> + <artifactId>examples-tourjs</artifactId> + <version>0.1.0-SNAPSHOT</version> + <packaging>pom</packaging> + + <modules> + <module>visualComponents/generalComponents/button</module> + </modules> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/c60ab1c9/examples/visualComponents/generalComponents/button/pom.xml ---------------------------------------------------------------------- diff --git a/examples/visualComponents/generalComponents/button/pom.xml b/examples/visualComponents/generalComponents/button/pom.xml new file mode 100644 index 0000000..83f623a --- /dev/null +++ b/examples/visualComponents/generalComponents/button/pom.xml @@ -0,0 +1,134 @@ +<?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.tourjs</groupId> + <artifactId>examples-tourjs</artifactId> + <version>0.1.0-SNAPSHOT</version> + <relativePath>../../../pom.xml</relativePath> + </parent> + + <artifactId>button</artifactId> + <version>0.1.0-SNAPSHOT</version> + <packaging>swf</packaging> + + <name>Apache Flex - FlexJS: Examples: FlexJS: Button</name> + + <properties> + <compiler.debug>true</compiler.debug> + <compiler.output-dir>target/javascript/bin/js-debug</compiler.output-dir> + </properties> + + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>flexjs-maven-plugin</artifactId> + <version>0.8.0-SNAPSHOT</version> + <extensions>true</extensions> + <configuration> + <flashVersion>20.0</flashVersion> + <debug>${compiler.debug}</debug> + <outputJavaScript>true</outputJavaScript> + <mainClass>Button.mxml</mainClass> + </configuration> + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>compiler-jx</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-war-plugin</artifactId> + <executions> + <execution> + <id>package-javascript</id> + <phase>package</phase> + <goals> + <goal>war</goal> + </goals> + </execution> + </executions> + <configuration> + <warSourceDirectory>${compiler.output-dir}</warSourceDirectory> + <failOnMissingWebXml>false</failOnMissingWebXml> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>attach-war</id> + <phase>package</phase> + <goals> + <goal>attach-artifact</goal> + </goals> + </execution> + </executions> + <configuration> + <artifacts> + <artifact> + <file>target/button-0.1.0-SNAPSHOT.war</file> + <type>war</type> + </artifact> + </artifacts> + </configuration> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>Core</artifactId> + <version>0.8.0-SNAPSHOT</version> + <type>swc</type> + </dependency> + + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>20.0</version> + <type>swc</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>HTML</artifactId> + <version>0.8.0-SNAPSHOT</version> + <type>swc</type> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>Language</artifactId> + <version>0.8.0-SNAPSHOT</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/c60ab1c9/examples/visualComponents/generalComponents/button/src/main/flex/Button.mxml ---------------------------------------------------------------------- diff --git a/examples/visualComponents/generalComponents/button/src/main/flex/Button.mxml b/examples/visualComponents/generalComponents/button/src/main/flex/Button.mxml new file mode 100644 index 0000000..95ec65c --- /dev/null +++ b/examples/visualComponents/generalComponents/button/src/main/flex/Button.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. + +--> +<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:js="library://ns.apache.org/flexjs/basic" > + <js:valuesImpl> + <js:SimpleCSSValuesImpl /> + </js:valuesImpl> + <js:initialView> + <js:View> + <js:TextButton text="Hello World!" /> + </js:View> + </js:initialView> +</js:Application> http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/c60ab1c9/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..d5eb833 --- /dev/null +++ b/pom.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.flex</groupId> + <artifactId>tourjs</artifactId> + <version>0.1.0-SNAPSHOT</version> + <packaging>pom</packaging> + + <modules> + <module>examples</module> + <module>TourJS</module> + </modules> + +</project> \ No newline at end of file
