-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.xml
68 lines (58 loc) · 2.65 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="UTF-8"?>
<project name="princess" default="default" basedir=".">
<description>
Princess
</description>
<!-- The settings can be overridden in local.properties. -->
<property environment="env" />
<property name="scala.home" value="${env.SCALA_HOME}" />
<property name="java.home" value="${env.JAVA_HOME}" />
<property name="scala-library.jar" value="${scala.home}/lib/scala-library.jar" />
<property name="scala-reflect.jar" value="${scala.home}/lib/scala-reflect.jar"/>
<property name="scala-parser-combinators.jar" value="${scala.home}/lib/scala-parser-combinators_2.11-1.0.4.jar"/>
<property name="scala-compiler.jar" value="${scala.home}/lib/scala-compiler.jar" />
<property name="scalac.default.params" value="-deprecation -unchecked" />
<property name="bin" location="bin" />
<property name="src" location="src" />
<property name="dist" location="dist" />
<!-- required to use the tasks scalac, fsc and scaladoc -->
<taskdef resource="scala/tools/ant/antlib.xml">
<classpath>
<pathelement location="${scala-compiler.jar}" />
<pathelement location="${scala-library.jar}" />
<pathelement location="${scala-reflect.jar}" />
</classpath>
</taskdef>
<!-- =================================
target: default
================================= -->
<target name="default" depends="compile">
</target>
<!-- - - - - - - - - - - - - - - - - -
target: compile
- - - - - - - - - - - - - - - - - -->
<target name="compile">
<path id="compile.classpath">
<pathelement location="${scala-library.jar}" />
<pathelement location="${scala-reflect.jar}" />
<pathelement location="${scala-parser-combinators.jar}" />
<pathelement location="parser/parser.jar" />
<pathelement location="smt-parser/smt-parser.jar" />
<pathelement location="extlibs/java-cup-11a.jar" />
<pathelement location="${bin}" />
</path>
<mkdir dir="${bin}" />
<scalac srcdir="${src}"
destdir="${bin}"
force="changed"
addparams="${scalac.default.params}"
classpathref="compile.classpath">
<include name="**/*.scala" />
</scalac>
<jar destfile="${dist}/princess.jar" basedir="${bin}/" />
</target>
<target name="clean" description="cleans up">
<delete dir="${bin}" includeemptydirs="yes" quiet="yes" failonerror="no" />
<delete file="${dist}/princess.jar" quiet="yes" failonerror="no" />
</target>
</project>