summaryrefslogtreecommitdiff
path: root/test/files/ant/scalac-build.xml
blob: b727737248e13bfbdb5d146988b92f02c8bb2df6 (plain) (blame)
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id$ -->

<project name="scalac" default="run" basedir=".">

  <import file="${basedir}/imported.xml"/>

<!-- ===========================================================================
BUILD
============================================================================ -->

  <target name="build" depends="init">
    <echo level="verbose" message="build.dir=${build.dir}"/>
    <mkdir dir="${build.dir}"/>
    <scalac
      srcdir="${source.dir}"
      includes="**/${ant.project.name}*.scala"
      deprecation="yes" unchecked="yes"
      destdir="${build.dir}"
      classpathref="build.classpath"
    />
    <dirname property="log.dir" file="${build.dir}"/>
    <echo level="verbose" message="log.dir=${log.dir}"/>
    <replace
      file="${log.dir}/${ant.project.name}-ant.log"
      token="${log.dir}"
      value="[...]/files/ant"
    />
  </target>

</project>