/
custom_rules.xml
25 lines (24 loc) · 1.09 KB
/
custom_rules.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<project name="AmazonListapp_scala">
<target name="scala-init">
<property name="scala-library.jar" value="${env.SCALA_HOME}/lib/scala-library.jar"></property>
<property name="scala-reflect.jar" value="${env.SCALA_HOME}/lib/scala-reflect.jar"></property>
<property name="scala.lib" value="${env.SCALA_HOME}/lib"></property>
<taskdef resource="scala/tools/ant/antlib.xml">
<classpath>
<pathelement location="${env.SCALA_HOME}/lib/scala-compiler.jar"></pathelement>
<pathelement location="${scala-reflect.jar}"></pathelement>
<pathelement location="${scala-library.jar}"></pathelement>
</classpath>
</taskdef>
</target>
<target name="scala-build" depends="scala-init">
<scalac srcdir="${source.dir}" destdir="${out.dir}">
<classpath>
<pathelement location="${sdk.dir}/platforms/${target}/android.jar"></pathelement>
<pathelement location="${scala-library.jar}"></pathelement>
<pathelement location="${source.dir}"></pathelement>
</classpath>
</scalac>
</target>
</project>