<?xml version="1.0" encoding="UTF-8"?>
<project name="module_android" default="compile.module.android">
  <dirname property="module.android.basedir" file="${ant.file.module_android}"/>
  
  <property name="module.jdk.home.android" value="${project.jdk.home}"/>
  <property name="module.jdk.bin.android" value="${project.jdk.bin}"/>
  <property name="module.jdk.classpath.android" value="${project.jdk.classpath}"/>
  
  <property name="compiler.args.android" value="-encoding UTF-8 -source 8 -target 8 ${compiler.args}"/>
  
  <property name="android.output.dir" value="${module.android.basedir}/out/production/android"/>
  <property name="android.testoutput.dir" value="${module.android.basedir}/out/test/android"/>
  
  <path id="android.module.bootclasspath">
    <!-- Paths to be included in compilation bootclasspath -->
  </path>
  
  <path id="android.module.production.classpath">
    <path refid="${module.jdk.classpath.android}"/>
  </path>
  
  <path id="android.runtime.production.module.classpath">
    <pathelement location="${android.output.dir}"/>
  </path>
  
  <path id="android.module.classpath">
    <path refid="${module.jdk.classpath.android}"/>
    <pathelement location="${android.output.dir}"/>
  </path>
  
  <path id="android.runtime.module.classpath">
    <pathelement location="${android.testoutput.dir}"/>
    <pathelement location="${android.output.dir}"/>
  </path>
  
  
  <patternset id="excluded.from.module.android">
    <patternset refid="ignored.files"/>
  </patternset>
  
  <patternset id="excluded.from.compilation.android">
    <patternset refid="excluded.from.module.android"/>
  </patternset>
  
  
  <target name="compile.module.android" depends="compile.module.android.production,compile.module.android.tests" description="Compile module android"/>
  
  <target name="compile.module.android.production" depends="register.custom.compilers" description="Compile module android; production classes"/>
  
  <target name="compile.module.android.tests" depends="register.custom.compilers,compile.module.android.production" description="compile module android; test classes" unless="skip.tests"/>
  
  <target name="clean.module.android" description="cleanup module">
    <delete dir="${android.output.dir}"/>
    <delete dir="${android.testoutput.dir}"/>
  </target>
</project>