This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/vivid in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 11cc6e01753bc6ae667556adb518ae4b9452ca5d Author: Alex Harui <aha...@apache.org> AuthorDate: Sun Feb 18 22:04:16 2018 -0800 ant build for VividExample --- examples/royale/VividExample/build.xml | 68 ++++++++++++++++++++++ .../src/main/config/compile-app-config.xml | 28 +++++++++ 2 files changed, 96 insertions(+) diff --git a/examples/royale/VividExample/build.xml b/examples/royale/VividExample/build.xml new file mode 100644 index 0000000..2f99436 --- /dev/null +++ b/examples/royale/VividExample/build.xml @@ -0,0 +1,68 @@ +<?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="VividExample" default="main" basedir="."> + <property name="ROYALE_HOME" location="../../.."/> + <property name="example" value="App" /> + + <property file="${ROYALE_HOME}/env.properties"/> + <property environment="env"/> + <property file="${ROYALE_HOME}/build.properties"/> + <property name="ROYALE_HOME" value="${ROYALE_HOME}"/> + + <include file="${basedir}/../../build_example.xml" /> + + <target name="main" depends="clean,build_example.compile" description="Clean build of ${example}"> + <mkdir dir="${basedir}/bin/js-debug/assets" /> + <copy todir="${basedir}/bin/js-debug/assets" failonerror="false"> + <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" failonerror="false"> + <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> + + <target name="examine" depends="build_example.get.browser"> + <property name="which" value="debug" /> + <echo message="See various team members."/> + <exec executable="${browser}" dir="${basedir}/bin/js-${which}" failonerror="true"> + <arg value="${basedir}/bin/js-${which}/index.html"/> + </exec> + </target> + + +</project> diff --git a/examples/royale/VividExample/src/main/config/compile-app-config.xml b/examples/royale/VividExample/src/main/config/compile-app-config.xml new file mode 100644 index 0000000..f23f22c --- /dev/null +++ b/examples/royale/VividExample/src/main/config/compile-app-config.xml @@ -0,0 +1,28 @@ +<!-- + + 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. + +--> +<royale-config> + <js-output-optimization> + <optimization>skipAsCoercions</optimization> + </js-output-optimization> + <compiler> + <theme> + <filename>../../../../../../frameworks/libs/VividBlueTheme.swc</filename> + </theme> + </compiler> +</royale-config> -- To stop receiving notification emails like this one, please contact aha...@apache.org.