-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
57 lines (49 loc) · 1.94 KB
/
build.xml
File metadata and controls
57 lines (49 loc) · 1.94 KB
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
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?><!-- -*- mode: nxml -*- -->
<project name="oiaw" basedir="." default="build">
<property name="src.dir" value="."/>
<property name="build.dir" value="classes"/>
<property name="lib.dir" value="${src.dir}/lib"/>
<path id="app.classpath">
<pathelement location="${lib.dir}/scala-compiler.jar"/>
<pathelement location="${lib.dir}/scala-library.jar"/>
<pathelement location="${lib.dir}/commons-cli-1.2.jar"/>
<pathelement location="${lib.dir}/scalatest-app_2.12-3.0.3.jar"/>
<pathelement location="${lib.dir}/scala-parser-combinators_2.11-1.0.6.jar"/>
<pathelement location="${lib.dir}/scalap-2.12.2.jar"/>
<pathelement location="${lib.dir}/scala-reflect.jar"/>
<pathelement location="${lib.dir}/scala-xml_2.12-1.0.6.jar"/>
</path>
<taskdef resource="scala/tools/ant/antlib.xml">
<classpath>
<pathelement location="${lib.dir}/scala-compiler.jar"/>
<pathelement location="${lib.dir}/scala-library.jar"/>
</classpath>
</taskdef>
<taskdef name="scalatest" classname="org.scalatest.tools.ScalaTestAntTask">
<classpath refid="app.classpath"/>
</taskdef>
<target name="build">
<mkdir dir="${build.dir}" />
<scalac srcdir="${src.dir}"
destdir="${build.dir}"
classpathref="app.classpath"
deprecation="yes"
unchecked="yes">
<include name="**/*.scala" />
</scalac>
</target>
<target name="test" depends="build">
<scalatest runpath="${build.dir}">
<suite classname="eu.budabe.oiaw.tests.OIAWSpec"/>
<reporter type="stdout"/>
</scalatest>
</target>
<target name="dist" depends="build">
<delete file="oiaw.jar"/>
<delete file="MANIFEST.MF"/>
<manifest file="MANIFEST.MF">
<attribute name="Main-Class" value="eu.budabe.oiaw.OIAW"/>
</manifest>
<jar jarfile="oiaw.jar" basedir="${build.dir}" manifest="MANIFEST.MF"/>
</target>
</project>