blob: ceb2c0cb5fe579f155a9604370275065d4d43f50 [file] [log] [blame]
<?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 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.flex.flexjs.externs</groupId>
<artifactId>flexjs-externs</artifactId>
<version>0.7.0-SNAPSHOT</version>
</parent>
<artifactId>flexjs-externs-createjs</artifactId>
<version>0.7.0-SNAPSHOT</version>
<packaging>swc</packaging>
<name>Apache Flex - FlexJS: Externs: CreateJS</name>
<properties>
<createjs.version>0.8.0</createjs.version>
<tweenjs.version>0.6.2</tweenjs.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<!-- Download easejs/createjs form GitHub and unpack it into the target directory -->
<execution>
<id>get-createjs</id>
<phase>validate</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://github.com/CreateJS/EaselJS/archive/${createjs.version}.zip</url>
<unpack>true</unpack>
<outputFileName>createjs-${createjs.version}.zip</outputFileName>
<outputDirectory>${project.build.directory}/downloads</outputDirectory>
</configuration>
</execution>
<!-- Download TweenJS form GitHub and unpack it into the target directory -->
<execution>
<id>get-tweenjs</id>
<phase>validate</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://github.com/CreateJS/TweenJS/archive/${tweenjs.version}.zip</url>
<unpack>true</unpack>
<outputFileName>tweenjs-${tweenjs.version}.zip</outputFileName>
<outputDirectory>${project.build.directory}/downloads</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.5.0</version>
<configuration>
<executable>${git.executable}</executable>
<workingDirectory>${basedir}/../..</workingDirectory>
<arguments>
<argument>apply</argument>
<argument>--ignore-whitespace</argument>
<argument>--whitespace=nowarn</argument>
</arguments>
</configuration>
<executions>
<execution>
<id>patch-easeljs</id>
<phase>validate</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<arguments combine.children="append">
<argument>${basedir}/src/main/patch/easeljs.patch</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>patch-tweenjs</id>
<phase>validate</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<arguments combine.children="append">
<argument>${basedir}/src/main/patch/tweenjs.patch</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.flex.flexjs.compiler</groupId>
<artifactId>flexjs-maven-plugin</artifactId>
<version>0.7.0-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
<includeSources>true</includeSources>
<externcInput>
<fileSet>
<directory>${project.basedir}/src/main/javascript</directory>
<includes>
<include>**/*.js</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.basedir}/target/downloads/EaselJS-${createjs.version}/src</directory>
<includes>
<include>**/*.js</include>
</includes>
<excludes>
<exclude>easeljs/version.js</exclude>
<exclude>easeljs/version_movieclip.js</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${project.basedir}/target/downloads/TweenJS-${tweenjs.version}/src</directory>
<includes>
<include>tweenjs/Ease.js</include>
<include>tweenjs/Timeline.js</include>
<include>tweenjs/Tween.js</include>
</includes>
</fileSet>
</externcInput>
<externcConfig>
<class-excludes>
<class-exclude>
<className>MovieClipPlugin</className>
</class-exclude>
<class-exclude>
<className>createjs.Text.V_OFFSETS</className>
</class-exclude>
<class-exclude>
<className>createjs.Text.H_OFFSETS</className>
</class-exclude>
<class-exclude>
<className>createjs.Graphics.BASE_64</className>
</class-exclude>
</class-excludes>
</externcConfig>
<includeFiles>
<include-file>
<name>externs/missing.js</name>
<path>../src/main/javascript/missing.js</path>
</include-file>
<include-file>
<name>externs/AlphaMapFilter.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/filters/AlphaMapFilter.js</path>
</include-file>
<include-file>
<name>externs/AlphaMaskFilter.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/filters/AlphaMaskFilter.js</path>
</include-file>
<include-file>
<name>externs/BlurFilter.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/filters/BlurFilter.js</path>
</include-file>
<include-file>
<name>externs/ColorFilter.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/filters/ColorFilter.js</path>
</include-file>
<include-file>
<name>externs/ColorMatrix.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/filters/ColorMatrix.js</path>
</include-file>
<include-file>
<name>externs/ColorMatrixFilter.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/filters/ColorMatrixFilter.js</path>
</include-file>
<include-file>
<name>externs/Filter.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/filters/Filter.js</path>
</include-file>
<include-file>
<name>externs/Bitmap.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/Bitmap.js</path>
</include-file>
<include-file>
<name>externs/BitmapText.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/BitmapText.js</path>
</include-file>
<include-file>
<name>externs/Container.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/Container.js</path>
</include-file>
<include-file>
<name>externs/DisplayObject.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/DisplayObject.js</path>
</include-file>
<include-file>
<name>externs/DOMElement.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/DOMElement.js</path>
</include-file>
<include-file>
<name>externs/Graphics.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/Graphics.js</path>
</include-file>
<include-file>
<name>externs/MovieClip.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/MovieClip.js</path>
</include-file>
<include-file>
<name>externs/Shadow.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/Shadow.js</path>
</include-file>
<include-file>
<name>externs/Shape.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/Shape.js</path>
</include-file>
<include-file>
<name>externs/Sprite.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/Sprite.js</path>
</include-file>
<include-file>
<name>externs/SpriteContainer.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/SpriteContainer.js</path>
</include-file>
<include-file>
<name>externs/SpriteSheet.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/SpriteSheet.js</path>
</include-file>
<include-file>
<name>externs/SpriteStage.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/SpriteStage.js</path>
</include-file>
<include-file>
<name>externs/Stage.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/Stage.js</path>
</include-file>
<include-file>
<name>externs/Text.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/display/Text.js</path>
</include-file>
<include-file>
<name>externs/ButtonHelper.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/ui/ButtonHelper.js</path>
</include-file>
<include-file>
<name>externs/DisplayProps.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/geom/DisplayProps.js</path>
</include-file>
<include-file>
<name>externs/Matrix2D.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/geom/Matrix2D.js</path>
</include-file>
<include-file>
<name>externs/Point.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/geom/Point.js</path>
</include-file>
<include-file>
<name>externs/Rectangle.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/geom/Rectangle.js</path>
</include-file>
<include-file>
<name>externs/Ease.js</name>
<path>downloads/Tweenjs-0.6.2/src/tweenjs/Ease.js</path>
</include-file>
<include-file>
<name>externs/Tween.js</name>
<path>downloads/Tweenjs-0.6.2/src/tweenjs/Tween.js</path>
</include-file>
<include-file>
<name>externs/Timeline.js</name>
<path>downloads/Tweenjs-0.6.2/src/tweenjs/Timeline.js</path>
</include-file>
<include-file>
<name>externs/Event.js</name>
<path>downloads/EaselJS-0.8.0/src/createjs/events/Event.js</path>
</include-file>
<include-file>
<name>externs/EventDispatcher.js</name>
<path>downloads/EaselJS-0.8.0/src/createjs/events/EventDispatcher.js</path>
</include-file>
<include-file>
<name>externs/MouseEvent.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/events/MouseEvent.js</path>
</include-file>
<include-file>
<name>externs/SpriteSheetBuilder.js</name>
<path>downloads/EaselJS-0.8.0/src/easeljs/utils/SpriteSheetBuilder.js</path>
</include-file>
<include-file>
<name>externs/Ticker.js</name>
<path>downloads/EaselJS-0.8.0/src/createjs/utils/Ticker.js</path>
</include-file>
</includeFiles>
<skipSwc>true</skipSwc>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.flex.flexjs.compiler</groupId>
<artifactId>compiler-jx</artifactId>
<version>0.7.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.flex.flexjs.externs</groupId>
<artifactId>flexjs-externs-js</artifactId>
<version>0.7.0-SNAPSHOT</version>
<type>swc</type>
<classifier>extern</classifier>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>