add ant build for MDLExample
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f57712e7 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f57712e7 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f57712e7 Branch: refs/heads/feature/fontawesome Commit: f57712e7af13e9a7800993d28ecd59face3a9263 Parents: 1ac6951 Author: Alex Harui <[email protected]> Authored: Mon Jan 2 00:05:47 2017 -0800 Committer: Alex Harui <[email protected]> Committed: Mon Jan 2 00:05:57 2017 -0800 ---------------------------------------------------------------------- examples/flexjs/MDLExample/build.xml | 63 +++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f57712e7/examples/flexjs/MDLExample/build.xml ---------------------------------------------------------------------- diff --git a/examples/flexjs/MDLExample/build.xml b/examples/flexjs/MDLExample/build.xml new file mode 100644 index 0000000..27967de --- /dev/null +++ b/examples/flexjs/MDLExample/build.xml @@ -0,0 +1,63 @@ +<?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 name="MDLExample" default="main" basedir="."> + <property name="FLEXJS_HOME" location="../../.."/> + <property name="example" value="App" /> + + <property file="${FLEXJS_HOME}/env.properties"/> + <property environment="env"/> + <property file="${FLEXJS_HOME}/build.properties"/> + <property name="FLEX_HOME" value="${FLEXJS_HOME}"/> + <property name="opt1_arg" value="-compiler.exclude-defaults-css-files=HTML-0.8.0-SNAPSHOT.swc:defaults.css" /> + <property name="opt2_arg" value="-html-template=${basedir}/src/main/resources/mdl-js-index-template.html" /> + + <include file="${basedir}/../../build_example.xml" /> + + <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}"> + <mkdir dir="${basedir}/bin/js-debug/assets" /> + <copy todir="${basedir}/bin/js-debug/assets" > + <fileset dir="${basedir}/src/main/resources/assets"> + <include name="**" /> + </fileset> + </copy> + <mkdir dir="${basedir}/bin/js-release/assets" /> + <copy todir="${basedir}/bin/js-release/assets" > + <fileset dir="${basedir}/src/main/resources/assets"> + <include name="**" /> + </fileset> + </copy> + <replace file="${basedir}/bin/js-debug/index.html" token="${primary}" value="indigo" /> + <replace file="${basedir}/bin/js-debug/index.html" token="${accent}" value="pink" /> + <replace file="${basedir}/bin/js-release/index.html" token="${primary}" value="indigo" /> + <replace file="${basedir}/bin/js-release/index.html" token="${accent}" value="pink" /> + </target> + + <target name="clean"> + <delete dir="${basedir}/bin" failonerror="false" /> + <delete dir="${basedir}/bin-debug" failonerror="false" /> + <delete dir="${basedir}/bin-release" failonerror="false" /> + <delete dir="${basedir}/target" failonerror="false" /> + </target> + + + +</project>
