Repository: flex-tourjs Updated Branches: refs/heads/develop 2eceae2a1 -> 2ace12ed9
Remove maven-war-plugin from examples pom's Project: http://git-wip-us.apache.org/repos/asf/flex-tourjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-tourjs/commit/2ace12ed Tree: http://git-wip-us.apache.org/repos/asf/flex-tourjs/tree/2ace12ed Diff: http://git-wip-us.apache.org/repos/asf/flex-tourjs/diff/2ace12ed Branch: refs/heads/develop Commit: 2ace12ed9e97edadd6597306d43a152e776a6cb2 Parents: 2eceae2 Author: piotrz <[email protected]> Authored: Sun Mar 26 15:02:12 2017 +0200 Committer: piotrz <[email protected]> Committed: Sun Mar 26 15:02:12 2017 +0200 ---------------------------------------------------------------------- .../generalComponents/alert/Alert/pom.xml | 244 ++++++-------- .../alert/Alert/src/main/flex/Alert.mxml | 19 +- .../generalComponents/alert/SimpleAlert/pom.xml | 242 ++++++-------- .../button/ImageButton/pom.xml | 320 +++++++++---------- .../ImageButton/src/main/flex/ImageButton.mxml | 11 +- .../generalComponents/button/TextButton/pom.xml | 242 ++++++-------- 6 files changed, 472 insertions(+), 606 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/2ace12ed/examples/visualComponents/generalComponents/alert/Alert/pom.xml ---------------------------------------------------------------------- diff --git a/examples/visualComponents/generalComponents/alert/Alert/pom.xml b/examples/visualComponents/generalComponents/alert/Alert/pom.xml index a1e7d54..4f55c7a 100644 --- a/examples/visualComponents/generalComponents/alert/Alert/pom.xml +++ b/examples/visualComponents/generalComponents/alert/Alert/pom.xml @@ -20,148 +20,114 @@ <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> + <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.apache.flex.tourjs</groupId> - <artifactId>examples-tourjs</artifactId> + <parent> + <groupId>org.apache.flex.tourjs</groupId> + <artifactId>examples-tourjs</artifactId> + <version>0.1.0-SNAPSHOT</version> + <relativePath>../../../../pom.xml</relativePath> + </parent> + + <artifactId>Alert</artifactId> <version>0.1.0-SNAPSHOT</version> - <relativePath>../../../../pom.xml</relativePath> - </parent> + <packaging>swf</packaging> + + <name>Apache Flex - FlexJS: Examples: FlexJS: Alert</name> - <artifactId>Alert</artifactId> - <version>0.1.0-SNAPSHOT</version> - <packaging>swf</packaging> + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>flexjs-maven-plugin</artifactId> + <version>${version.flexjs}</version> + <extensions>true</extensions> + <configuration> + <flashVersion>${version.flash}</flashVersion> + <debug>${compiler.debug}</debug> + <outputJavaScript>true</outputJavaScript> + <mainClass>Alert.mxml</mainClass> + </configuration> + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>compiler-jx</artifactId> + <version>${version.flexjs}</version> + </dependency> + </dependencies> + </plugin> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>3.0.2</version> + <executions> + <execution> + <id>alert-src</id> + <phase>install</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory> + ../../../../../TourJS/src/main/resources/content/${alert.module}/src/main/flex + </outputDirectory> + <resources> + <resource> + <directory>src</directory> + <filtering>true</filtering> + </resource> + </resources> + </configuration> + </execution> + <execution> + <id>alert-js-release</id> + <phase>install</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory> + ../../../../../TourJS/src/main/resources/content/${alert.module}/bin/js-release + </outputDirectory> + <resources> + <resource> + <directory>target/javascript/bin/js-release</directory> + <filtering>true</filtering> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>Core</artifactId> + <version>${version.flexjs}</version> + <type>swc</type> + </dependency> - <name>Apache Flex - FlexJS: Examples: FlexJS: Alert</name> - - <build> - <sourceDirectory>src/main/flex</sourceDirectory> - <plugins> - <plugin> - <groupId>org.apache.flex.flexjs.compiler</groupId> - <artifactId>flexjs-maven-plugin</artifactId> - <version>${version.flexjs}</version> - <extensions>true</extensions> - <configuration> - <flashVersion>${version.flash}</flashVersion> - <debug>${compiler.debug}</debug> - <outputJavaScript>true</outputJavaScript> - <mainClass>Alert.mxml</mainClass> - </configuration> - <dependencies> - <dependency> - <groupId>org.apache.flex.flexjs.compiler</groupId> - <artifactId>compiler-jx</artifactId> - <version>${version.flexjs}</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/alert-0.1.0-SNAPSHOT.war</file> - <type>war</type> - </artifact> - </artifacts> - </configuration> - </plugin> - <plugin> - <artifactId>maven-resources-plugin</artifactId> - <version>3.0.2</version> - <executions> - <execution> - <id>alert-src</id> - <phase>install</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>../../../../../TourJS/src/main/resources/content/${alert.module}/src/main/flex</outputDirectory> - <resources> - <resource> - <directory>src</directory> - <filtering>true</filtering> - </resource> - </resources> - </configuration> - </execution> - <execution> - <id>alert-js-release</id> - <phase>install</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>../../../../../TourJS/src/main/resources/content/${alert.module}/bin/js-release</outputDirectory> - <resources> - <resource> - <directory>target/javascript/bin/js-release</directory> - <filtering>true</filtering> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - <dependencies> - <dependency> - <groupId>org.apache.flex.flexjs.framework</groupId> - <artifactId>Core</artifactId> - <version>${version.flexjs}</version> - <type>swc</type> - </dependency> - - <dependency> - <groupId>com.adobe.flash.framework</groupId> - <artifactId>playerglobal</artifactId> - <version>${version.flash}</version> - <type>swc</type> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.flex.flexjs.framework</groupId> - <artifactId>HTML</artifactId> - <version>${version.flexjs}</version> - <type>swc</type> - </dependency> - <dependency> - <groupId>org.apache.flex.flexjs.framework</groupId> - <artifactId>Language</artifactId> - <version>${version.flexjs}</version> - <type>swc</type> - </dependency> - </dependencies> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>${version.flash}</version> + <type>swc</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>HTML</artifactId> + <version>${version.flexjs}</version> + <type>swc</type> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>Language</artifactId> + <version>${version.flexjs}</version> + <type>swc</type> + </dependency> + </dependencies> </project> http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/2ace12ed/examples/visualComponents/generalComponents/alert/Alert/src/main/flex/Alert.mxml ---------------------------------------------------------------------- diff --git a/examples/visualComponents/generalComponents/alert/Alert/src/main/flex/Alert.mxml b/examples/visualComponents/generalComponents/alert/Alert/src/main/flex/Alert.mxml index e428763..539b7fe 100644 --- a/examples/visualComponents/generalComponents/alert/Alert/src/main/flex/Alert.mxml +++ b/examples/visualComponents/generalComponents/alert/Alert/src/main/flex/Alert.mxml @@ -21,15 +21,16 @@ limitations under the License. xmlns:js="library://ns.apache.org/flexjs/basic" > <fx:Script> <![CDATA[ - import org.apache.flex.html.Alert; - - private function showAlert():void { - Alert.show("This is a standard FlexJS alert. Do you wish to continue?", - mainView, - "Standard Alert", - Alert.YES|Alert.NO); - } - ]]> + import org.apache.flex.html.Alert; + + private function showAlert():void + { + Alert.show("This is a standard FlexJS alert. Do you wish to continue?", + mainView, + "Standard Alert", + Alert.YES | Alert.NO); + } + ]]> </fx:Script> <js:valuesImpl> <js:SimpleCSSValuesImpl /> http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/2ace12ed/examples/visualComponents/generalComponents/alert/SimpleAlert/pom.xml ---------------------------------------------------------------------- diff --git a/examples/visualComponents/generalComponents/alert/SimpleAlert/pom.xml b/examples/visualComponents/generalComponents/alert/SimpleAlert/pom.xml index 12e64f7..b18a5b1 100644 --- a/examples/visualComponents/generalComponents/alert/SimpleAlert/pom.xml +++ b/examples/visualComponents/generalComponents/alert/SimpleAlert/pom.xml @@ -20,148 +20,114 @@ <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> + <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.apache.flex.tourjs</groupId> - <artifactId>examples-tourjs</artifactId> + <parent> + <groupId>org.apache.flex.tourjs</groupId> + <artifactId>examples-tourjs</artifactId> + <version>0.1.0-SNAPSHOT</version> + <relativePath>../../../../pom.xml</relativePath> + </parent> + + <artifactId>SimpleAlert</artifactId> <version>0.1.0-SNAPSHOT</version> - <relativePath>../../../../pom.xml</relativePath> - </parent> + <packaging>swf</packaging> - <artifactId>SimpleAlert</artifactId> - <version>0.1.0-SNAPSHOT</version> - <packaging>swf</packaging> + <name>Apache Flex - FlexJS: Examples: FlexJS: SimpleAlert</name> - <name>Apache Flex - FlexJS: Examples: FlexJS: SimpleAlert</name> + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <plugins> + <plugin> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>flexjs-maven-plugin</artifactId> + <version>${version.flexjs}</version> + <extensions>true</extensions> + <configuration> + <flashVersion>${version.flash}</flashVersion> + <debug>${compiler.debug}</debug> + <outputJavaScript>true</outputJavaScript> + <mainClass>SimpleAlert.mxml</mainClass> + </configuration> + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>compiler-jx</artifactId> + <version>${version.flexjs}</version> + </dependency> + </dependencies> + </plugin> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>3.0.2</version> + <executions> + <execution> + <id>simplealert-src</id> + <phase>install</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory> + ../../../../../TourJS/src/main/resources/content/${simplealert.module}/src/main/flex + </outputDirectory> + <resources> + <resource> + <directory>src</directory> + <filtering>true</filtering> + </resource> + </resources> + </configuration> + </execution> + <execution> + <id>simplealert-js-release</id> + <phase>install</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory> + ../../../../../TourJS/src/main/resources/content/${simplealert.module}/bin/js-release + </outputDirectory> + <resources> + <resource> + <directory>target/javascript/bin/js-release</directory> + <filtering>true</filtering> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>Core</artifactId> + <version>${version.flexjs}</version> + <type>swc</type> + </dependency> - <build> - <sourceDirectory>src/main/flex</sourceDirectory> - <plugins> - <plugin> - <groupId>org.apache.flex.flexjs.compiler</groupId> - <artifactId>flexjs-maven-plugin</artifactId> - <version>${version.flexjs}</version> - <extensions>true</extensions> - <configuration> - <flashVersion>${version.flash}</flashVersion> - <debug>${compiler.debug}</debug> - <outputJavaScript>true</outputJavaScript> - <mainClass>SimpleAlert.mxml</mainClass> - </configuration> - <dependencies> - <dependency> - <groupId>org.apache.flex.flexjs.compiler</groupId> - <artifactId>compiler-jx</artifactId> - <version>${version.flexjs}</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/simplealert-0.1.0-SNAPSHOT.war</file> - <type>war</type> - </artifact> - </artifacts> - </configuration> - </plugin> - <plugin> - <artifactId>maven-resources-plugin</artifactId> - <version>3.0.2</version> - <executions> - <execution> - <id>simplealert-src</id> - <phase>install</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>../../../../../TourJS/src/main/resources/content/${simplealert.module}/src/main/flex</outputDirectory> - <resources> - <resource> - <directory>src</directory> - <filtering>true</filtering> - </resource> - </resources> - </configuration> - </execution> - <execution> - <id>simplealert-js-release</id> - <phase>install</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>../../../../../TourJS/src/main/resources/content/${simplealert.module}/bin/js-release</outputDirectory> - <resources> - <resource> - <directory>target/javascript/bin/js-release</directory> - <filtering>true</filtering> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - <dependencies> - <dependency> - <groupId>org.apache.flex.flexjs.framework</groupId> - <artifactId>Core</artifactId> - <version>${version.flexjs}</version> - <type>swc</type> - </dependency> - - <dependency> - <groupId>com.adobe.flash.framework</groupId> - <artifactId>playerglobal</artifactId> - <version>${version.flash}</version> - <type>swc</type> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.flex.flexjs.framework</groupId> - <artifactId>HTML</artifactId> - <version>${version.flexjs}</version> - <type>swc</type> - </dependency> - <dependency> - <groupId>org.apache.flex.flexjs.framework</groupId> - <artifactId>Language</artifactId> - <version>${version.flexjs}</version> - <type>swc</type> - </dependency> - </dependencies> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>${version.flash}</version> + <type>swc</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>HTML</artifactId> + <version>${version.flexjs}</version> + <type>swc</type> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>Language</artifactId> + <version>${version.flexjs}</version> + <type>swc</type> + </dependency> + </dependencies> </project> http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/2ace12ed/examples/visualComponents/generalComponents/button/ImageButton/pom.xml ---------------------------------------------------------------------- diff --git a/examples/visualComponents/generalComponents/button/ImageButton/pom.xml b/examples/visualComponents/generalComponents/button/ImageButton/pom.xml index be6a672..4a4cb70 100644 --- a/examples/visualComponents/generalComponents/button/ImageButton/pom.xml +++ b/examples/visualComponents/generalComponents/button/ImageButton/pom.xml @@ -20,188 +20,154 @@ <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> + <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> + <parent> + <groupId>org.apache.flex.tourjs</groupId> + <artifactId>examples-tourjs</artifactId> + <version>0.1.0-SNAPSHOT</version> + <relativePath>../../../../pom.xml</relativePath> + </parent> - <artifactId>ImageButton</artifactId> - <version>0.1.0-SNAPSHOT</version> - <packaging>swf</packaging> + <artifactId>ImageButton</artifactId> + <version>0.1.0-SNAPSHOT</version> + <packaging>swf</packaging> - <name>Apache Flex - FlexJS: Examples: FlexJS: ImageButton</name> + <name>Apache Flex - FlexJS: Examples: FlexJS: ImageButton</name> - <build> - <sourceDirectory>src/main/flex</sourceDirectory> - <resources> - <resource> - <directory>src/main/resources</directory> - <filtering>true</filtering> - </resource> - </resources> - <plugins> - <plugin> - <groupId>org.apache.flex.flexjs.compiler</groupId> - <artifactId>flexjs-maven-plugin</artifactId> - <version>${version.flexjs}</version> - <extensions>true</extensions> - <configuration> - <flashVersion>${version.flash}</flashVersion> - <debug>${compiler.debug}</debug> - <outputJavaScript>true</outputJavaScript> - <mainClass>ImageButton.mxml</mainClass> - </configuration> - <dependencies> - <dependency> - <groupId>org.apache.flex.flexjs.compiler</groupId> - <artifactId>compiler-jx</artifactId> - <version>${version.flexjs}</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/imagebutton-0.1.0-SNAPSHOT.war</file> - <type>war</type> - </artifact> - </artifacts> - </configuration> - </plugin> - <plugin> - <artifactId>maven-resources-plugin</artifactId> - <version>3.0.2</version> - <executions> - <execution> - <id>imagebutton-src</id> - <phase>install</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>../../../../../TourJS/src/main/resources/content/${imagebutton.module}/src/main/flex</outputDirectory> - <resources> + <build> + <sourceDirectory>src/main/flex</sourceDirectory> + <resources> <resource> - <directory>src</directory> - <filtering>true</filtering> + <directory>src/main/resources</directory> + <filtering>true</filtering> </resource> - </resources> - </configuration> - </execution> - <execution> - <id>imagebutton-js-release</id> - <phase>install</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>../../../../../TourJS/src/main/resources/content/${imagebutton.module}/bin/js-release</outputDirectory> - <resources> - <resource> - <directory>target/javascript/bin/js-release</directory> - <filtering>true</filtering> - </resource> - </resources> - </configuration> - </execution> - <execution> - <id>copy-debug-resources</id> - <!-- here the phase you need --> - <phase>validate</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>${basedir}/target/javascript/bin/js-debug/resources</outputDirectory> - <resources> - <resource> - <directory>src/main/resources</directory> - <filtering>true</filtering> - </resource> - </resources> - </configuration> - </execution> - <execution> - <id>copy-release-resources</id> - <!-- here the phase you need --> - <phase>validate</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>${basedir}/target/javascript/bin/js-release/resources</outputDirectory> - <resources> - <resource> - <directory>src/main/resources</directory> - <filtering>true</filtering> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - <dependencies> - <dependency> - <groupId>org.apache.flex.flexjs.framework</groupId> - <artifactId>Core</artifactId> - <version>${version.flexjs}</version> - <type>swc</type> - </dependency> - - <dependency> - <groupId>com.adobe.flash.framework</groupId> - <artifactId>playerglobal</artifactId> - <version>${version.flash}</version> - <type>swc</type> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.flex.flexjs.framework</groupId> - <artifactId>HTML</artifactId> - <version>${version.flexjs}</version> - <type>swc</type> - </dependency> - <dependency> - <groupId>org.apache.flex.flexjs.framework</groupId> - <artifactId>Language</artifactId> - <version>${version.flexjs}</version> - <type>swc</type> - </dependency> - </dependencies> + </resources> + <plugins> + <plugin> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>flexjs-maven-plugin</artifactId> + <version>${version.flexjs}</version> + <extensions>true</extensions> + <configuration> + <flashVersion>${version.flash}</flashVersion> + <debug>${compiler.debug}</debug> + <outputJavaScript>true</outputJavaScript> + <mainClass>ImageButton.mxml</mainClass> + </configuration> + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>compiler-jx</artifactId> + <version>${version.flexjs}</version> + </dependency> + </dependencies> + </plugin> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>3.0.2</version> + <executions> + <execution> + <id>imagebutton-src</id> + <phase>install</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory> + ../../../../../TourJS/src/main/resources/content/${imagebutton.module}/src/main/flex + </outputDirectory> + <resources> + <resource> + <directory>src</directory> + <filtering>true</filtering> + </resource> + </resources> + </configuration> + </execution> + <execution> + <id>imagebutton-js-release</id> + <phase>install</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory> + ../../../../../TourJS/src/main/resources/content/${imagebutton.module}/bin/js-release + </outputDirectory> + <resources> + <resource> + <directory>target/javascript/bin/js-release</directory> + <filtering>true</filtering> + </resource> + </resources> + </configuration> + </execution> + <execution> + <id>copy-debug-resources</id> + <!-- here the phase you need --> + <phase>validate</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${basedir}/target/javascript/bin/js-debug/resources</outputDirectory> + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + </resources> + </configuration> + </execution> + <execution> + <id>copy-release-resources</id> + <!-- here the phase you need --> + <phase>validate</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${basedir}/target/javascript/bin/js-release/resources</outputDirectory> + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>Core</artifactId> + <version>${version.flexjs}</version> + <type>swc</type> + </dependency> + + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>${version.flash}</version> + <type>swc</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>HTML</artifactId> + <version>${version.flexjs}</version> + <type>swc</type> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>Language</artifactId> + <version>${version.flexjs}</version> + <type>swc</type> + </dependency> + </dependencies> </project> http://git-wip-us.apache.org/repos/asf/flex-tourjs/blob/2ace12ed/examples/visualComponents/generalComponents/button/ImageButton/src/main/flex/ImageButton.mxml ---------------------------------------------------------------------- diff --git a/examples/visualComponents/generalComponents/button/ImageButton/src/main/flex/ImageButton.mxml b/examples/visualComponents/generalComponents/button/ImageButton/src/main/flex/ImageButton.mxml index 6a6c363..5d70821 100644 --- a/examples/visualComponents/generalComponents/button/ImageButton/src/main/flex/ImageButton.mxml +++ b/examples/visualComponents/generalComponents/button/ImageButton/src/main/flex/ImageButton.mxml @@ -18,8 +18,7 @@ limitations under the License. --> <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:local="*"> + xmlns:js="library://ns.apache.org/flexjs/basic"> <fx:Script> <