-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmixed.xml
More file actions
70 lines (59 loc) · 2.51 KB
/
mixed.xml
File metadata and controls
70 lines (59 loc) · 2.51 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
58
59
60
61
62
63
64
65
66
67
68
69
70
<project name="scala test" default="done" xmlns:ivy="antlib:org.apache.ivy.ant" basedir=".">
<property name="sources.dir" value="${basedir}/src/test/mixed"/>
<property name="build.dir" value="${basedir}/mixedbuild"/>
<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="lib/groovy-all-2.3.3.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>
<taskdef name="groovyc"
classname="org.codehaus.groovy.ant.Groovyc"
classpathref="build.classpath"/>
</target>
<target name="build" depends="init">
<mkdir dir="${build.dir}"/>
<scalac srcdir="${sources.dir}"
destdir="${build.dir}"
classpathref="build.classpath">
<include name="*.scala"/>
</scalac>
<groovyc srcdir="${sources.dir}"
destdir="${build.dir}"
classpathref="build.classpath">
<include name="*.groovy"/>
</groovyc>
<javac srcdir="${sources.dir}"
destdir="${build.dir}"
classpath="${build.dir}">
<include name="*.java"/>
</javac>
</target>
<target name="run" depends="build">
<java classname="base"
classpathref="build.classpath" fork="true">
<!--<jvmarg value="-DSECURT_LOGLEVEL=debug"/>-->
<jvmarg value="-DLOG_EXCEPTIONS=true"/>
<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>