-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscala.xml
More file actions
53 lines (44 loc) · 1.92 KB
/
scala.xml
File metadata and controls
53 lines (44 loc) · 1.92 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
<project name="scala test" default="done" xmlns:ivy="antlib:org.apache.ivy.ant" basedir=".">
<property name="sources.dir" value="${basedir}/src/test/scala" />
<property name="build.dir" value="${basedir}/scalabuild" />
<target name="init">
<ivy:resolve>
<!--<dependency org="org.codehaus.groovy" name="groovy-all" rev="2.3.3"/>-->
<dependency org="org.scala-lang" name="scala-library" rev="2.11.2"/>
<dependency org="org.scala-lang" name="scala-compiler" rev="2.11.2"/>
</ivy:resolve>
<ivy:retrieve sync="true"/>
<property name="scala-library.jar" value="lib/scala-library-2.11.2.jar" />
<path id="build.classpath">
<pathelement location="${scala-library.jar}" />
<!--<pathelement location="${your.path}" />-->
<pathelement location="${build.dir}" />
</path>
<taskdef resource="scala/tools/ant/antlib.xml">
<classpath>
<pathelement location="lib/scala-reflect-2.11.2.jar" />
<pathelement location="lib/scala-compiler-2.11.2.jar" />
<pathelement location="${scala-library.jar}" />
</classpath>
</taskdef>
</target>
<target name="build" depends="init">
<mkdir dir="${build.dir}" />
<scalac srcdir="${sources.dir}"
destdir="${build.dir}"
classpathref="build.classpath">
<include name="*.scala" />
</scalac>
</target>
<target name="run" depends="build">
<java classname="Poc"
classpathref="build.classpath" fork="true">
<jvmarg value="-DSECURT_LOGLEVEL=debug"/>
<jvmarg value="-Xbootclasspath/p:build/distributions/SecuRT-1.0-shadow.jar"/>
</java>
</target>
<target name="done" depends="run">
<delete dir="${build.dir}"/>
<delete dir="lib"/>
</target>
</project>