blob: cf901838ef3308ddd1e8ce91b7b328d8a8da09d1 [file] [log] [blame]
<?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="mobiletrader" default="main" basedir=".">
<property name="ROYALE_HOME" location="../../.."/>
<property name="example" value="MobileTrader" />
<property environment="env"/>
<property file="${ROYALE_HOME}/build.properties"/>
<property file="${ROYALE_HOME}/local.properties"/>
<property name="ROYALE_HOME" value="${ROYALE_HOME}"/>
<include file="${basedir}/../../build_example.xml" />
<condition property="extlib_arg" value="-external-library-path=${ROYALE_HOME}/js/libs/js.swc" >
<and>
<not>
<isset property="extlib_arg" />
</not>
<available file="${ROYALE_HOME}/js/libs/js.swc" type="file" />
</and>
</condition>
<target name="main" depends="clean,build_example.compile,build_example.copy-js-resources,build_example.compile.cordova" description="Clean build of ${example}">
</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}/app" failonerror="false" />
<delete dir="${basedir}/target" failonerror="false" />
</target>
<target name="examine" depends="build_example.get.browser">
<property name="which" value="debug" />
<echo message="View example"/>
<exec executable="${browser}" dir="${basedir}/bin-${which}" failonerror="true">
<arg value="${basedir}/bin-${which}/${example}.html"/>
</exec>
<antcall target="build_example.run.cordova" />
</target>
</project>