Repository: flex-asjs Updated Branches: refs/heads/develop c268a9080 -> 2f7d30fcb
- Added build of the flat-ui-icon font Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/2f7d30fc Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/2f7d30fc Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/2f7d30fc Branch: refs/heads/develop Commit: 2f7d30fcbc05c4ce68225a9081b5871a7643fb78 Parents: c268a90 Author: Christofer Dutz <[email protected]> Authored: Wed Jul 6 12:28:42 2016 +0200 Committer: Christofer Dutz <[email protected]> Committed: Wed Jul 6 12:28:59 2016 +0200 ---------------------------------------------------------------------- frameworks/fontsrc/pom.xml | 143 ++++++++++++++++++++++++++++++++++++++++ frameworks/pom.xml | 1 + 2 files changed, 144 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2f7d30fc/frameworks/fontsrc/pom.xml ---------------------------------------------------------------------- diff --git a/frameworks/fontsrc/pom.xml b/frameworks/fontsrc/pom.xml new file mode 100644 index 0000000..7d232fa --- /dev/null +++ b/frameworks/fontsrc/pom.xml @@ -0,0 +1,143 @@ +<?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.framework</groupId> + <artifactId>frameworks</artifactId> + <version>0.7.0-SNAPSHOT</version> + </parent> + + <artifactId>Fonts</artifactId> + <version>0.7.0-SNAPSHOT</version> + <packaging>war</packaging> + + <properties> + <flat-ui.version>2.2.2</flat-ui.version> + </properties> + + <build> + <plugins> + <plugin> + <groupId>com.googlecode.maven-download-plugin</groupId> + <artifactId>download-maven-plugin</artifactId> + <version>1.2.1</version> + <executions> + <!-- Download Flat-UI 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/designmodo/Flat-UI/archive/${flat-ui.version}.zip</url> + <unpack>true</unpack> + <outputFileName>flat-ui-${flat-ui.version}.zip</outputFileName> + <outputDirectory>${project.build.directory}/downloads</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + <!-- Have the Flat-UI Icons Font compiled to an SWF --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>1.5.0</version> + <configuration> + <mainClass>com.adobe.fonts.transcoder.Font2SWF</mainClass> + <arguments> + <argument>-4</argument> + <argument>-a</argument> + <argument>Flat-UI-Icons</argument> + <argument>-o</argument> + <argument>${basedir}/target/${artifactId}-${version}.swf</argument> + <argument>${basedir}/target/downloads/Flat-UI-${flat-ui.version}/fonts/glyphicons/flat-ui-icons-regular.ttf</argument> + </arguments> + <includePluginDependencies>true</includePluginDependencies> + </configuration> + <executions> + <execution> + <id>compile-font</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>com.adobe</groupId> + <artifactId>fontkit</artifactId> + <version>1.0</version> + </dependency> + <dependency> + <groupId>org.apache.flex.compiler</groupId> + <artifactId>swfutils</artifactId> + <version>${flex.version}</version> + </dependency> + </dependencies> + </plugin> + <!-- Create a stripped-down WAR archive containing the fonts --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-war-plugin</artifactId> + <configuration> + <warSourceDirectory>${project.build.directory}/downloads/Flat-UI-${flat-ui.version}/fonts/glyphicons</warSourceDirectory> + <warSourceExcludes>selection.json</warSourceExcludes> + <packagingExcludes>WEB-INF/**</packagingExcludes> + <failOnMissingWebXml>false</failOnMissingWebXml> + <archive> + <addMavenDescriptor>false</addMavenDescriptor> + </archive> + </configuration> + </plugin> + <!-- + Attach the generated swf as additional Maven artifact, + So it is automatically installed and deployed. + --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>1.11</version> + <executions> + <execution> + <id>attach-swf</id> + <phase>package</phase> + <goals> + <goal>attach-artifact</goal> + </goals> + </execution> + </executions> + <configuration> + <artifacts> + <artifact> + <file>${basedir}/target/${artifactId}-${version}.swf</file> + <type>swf</type> + </artifact> + </artifacts> + </configuration> + </plugin> + </plugins> + </build> + +</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2f7d30fc/frameworks/pom.xml ---------------------------------------------------------------------- diff --git a/frameworks/pom.xml b/frameworks/pom.xml index cfe077b..c112369 100644 --- a/frameworks/pom.xml +++ b/frameworks/pom.xml @@ -33,6 +33,7 @@ <packaging>pom</packaging> <modules> + <module>fontsrc</module> <module>projects</module> </modules>
