-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
48 lines (40 loc) · 1.6 KB
/
build.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<project name="ExtraPattern" default="compile" basedir=".">
<property name="scala-source.dir" value="${basedir}/src/main/scala" />
<property name="target.dir" value="${basedir}/target" />
<property name="target-docs.dir" value="${target.dir}/docs" />
<property name="build.dir" value="${target.dir}/classes" />
<property name="main.class" value="org.jamieallen.effectiveakka.${ant.project.name}" />
<!-- task 'init' and macro 'dotc' are defined in parent build.xml -->
<import file="../../build.xml" />
<target name="compile" depends="init">
<mkdir dir="${build.dir}" />
<dotc srcdir="${scala-source.dir}"
destdir="${build.dir}"
classpathref="build.classpath" />
</target>
<target name="decompile" depends="compile">
<mkdir dir="${cfr-source.dir}" />
<cfr srcdir="${build.dir}"
destdir="${cfr-source.dir}"
classpathref="build.classpath" />
</target>
<target name="doc" depends="compile">
<mkdir dir="${target-docs.dir}" />
<dotd srcdir="${build.dir}"
destdir="${target-docs.dir}"
classpathref="build.classpath" />
</target>
<target name="run" depends="compile">
<java classname="${main.class}">
<!-- <arg value="1" /> -->
<classpath>
<path refid="scala3.classpath" />
<path refid="build.classpath" />
</classpath>
</java>
</target>
<target name="clean">
<delete dir="${target.dir}"/>
</target>
</project>