flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bigosma...@apache.org
Subject [25/35] git commit: [flex-asjs] [refs/heads/develop] - add ant script for team page
Date Tue, 10 Jan 2017 08:25:16 GMT
add ant script for team page


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/48547559
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/48547559
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/48547559

Branch: refs/heads/develop
Commit: 48547559abc7a53bf5fe2a2d959a6dbdfb06b639
Parents: 0f9afd8
Author: Alex Harui <aharui@apache.org>
Authored: Fri Jan 6 22:00:37 2017 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Jan 6 22:00:37 2017 -0800

----------------------------------------------------------------------
 examples/flexjs/FlexTeamPage_MDL/build.xml | 63 +++++++++++++++++++++++++
 1 file changed, 63 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/48547559/examples/flexjs/FlexTeamPage_MDL/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexTeamPage_MDL/build.xml b/examples/flexjs/FlexTeamPage_MDL/build.xml
new file mode 100644
index 0000000..e711b0e
--- /dev/null
+++ b/examples/flexjs/FlexTeamPage_MDL/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="FlexTeamPage_MDL" 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.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>


Mime
View raw message