-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_common.xml
60 lines (50 loc) · 1.94 KB
/
build_common.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
<property environment="env" />
<!-- set scala.home -->
<property name="scala.home" value="${env.SCALA_HOME}" />
<property name="sources.dir" value="src" />
<property name="lib.dir" value="lib" />
<property name="build.dir" value="classes" />
<property name="docs.dir" value="docs" />
<property name="testbuild.dir" value="test-classes" />
<property name="test-sources.dir" value="test" />
<property name="scala-library.jar" value="${scala.home}/lib/scala-library.jar" />
<property name="scala-compiler.jar" value="${scala.home}/lib/scala-compiler.jar" />
<property name="scala.reflect" value="${scala.home}/lib/scala-reflect.jar"/>
<property name="scala.xml" value="${scala.home}/lib/scala-xml_2.12-1.0.6.jar"/>
<taskdef resource="scala/tools/ant/antlib.xml">
<classpath>
<pathelement location="${scala-compiler.jar}" />
<pathelement location="${scala-library.jar}" />
<pathelement location="${scala.reflect}"/>
<pathelement location="${scala.xml}"/>
</classpath>
</taskdef>
<target name="ivyreport">
<ivy:report dot="true" />
</target>
<ivy:cachepath file="../ivy.xml" pathid="ivy.classpath" />
<target name="test" depends="classfiles">
<taskdef name="scalatest" classname="org.scalatest.tools.ScalaTestAntTask">
<classpath refid="test.classpath" />
</taskdef>
<scalatest fork="true" parallel="false">
<reporter type="stdout" config="FD"/>
<reporter type="file" filename="tests.out"/>
<runpath>
<pathelement location="${testbuild.dir}" />
</runpath>
</scalatest>
</target>
<target name="docs">
<mkdir dir="${docs.dir}" />
<scaladoc srcdir="${sources.dir}"
destdir="${docs.dir}"
classpathref="compile.classpath"
diagrams="on"
nofail="on"
addparams="-no-java-comments"
doctitle="Toxygates library documentation">
<include name="**/*.scala" />
<include name="**/*.java" />
</scaladoc>
</target>