-
Notifications
You must be signed in to change notification settings - Fork 1
/
base-build.xml
executable file
·116 lines (99 loc) · 3.66 KB
/
base-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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="none">
<property file="../razbase/razie.properties"/>
<path id="scala.path">
<pathelement location="${scala.home}/lib/scala-library.jar"/>
</path>
<path id="eclipse.scala.path">
<pathelement location="${eclipse.bundle}/lib/scala-library.jar"/>
</path>
<path id="test.path">
<pathelement location="${scalatest.jar}"/>
<pathelement location="${junit3.jar}"/>
</path>
<path id="build.classpath">
<pathelement location="bin"/>
<path refid="scala.path"/>
<path refid="depy.path"/>
</path>
<path id="test.classpath">
<pathelement location="bin"/>
<path refid="scala.path"/>
<path refid="depy.path"/>
<path refid="test.path"/>
</path>
<target name="init">
<taskdef resource="scala/tools/ant/antlib.xml">
<classpath>
<pathelement location="${scala.home}/lib/scala-compiler.jar" />
<pathelement location="${scala.home}/lib/scala-library.jar" />
</classpath>
</taskdef>
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir="**/src/main/scala" erroronmissingdir="false">
<exclude name="**/*.scala"/>
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
</fileset>
<fileset dir="**/src/main/resources" erroronmissingdir="false">
<exclude name="**/*.scala"/>
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
</fileset>
<fileset dir="**/src/test/scala" erroronmissingdir="false">
<exclude name="**/*.scala"/>
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
</fileset>
<fileset dir="**/src/test/resources" erroronmissingdir="false">
<exclude name="**/*.scala"/>
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<!--
<target depends="init" name="build">
<echo message="${ant.project.name}: ${ant.file}"/>
<scalac srcdir="src" destdir="bin" >
<classpath refid="build.classpath" />
</scalac>
<javac srcdir="src" destdir="bin" debug="no">
<classpath refid="build.classpath" />
</javac>
<scalac srcdir="test_src" destdir="bin" addparams="-g">
<classpath refid="test.classpath" />
</scalac>
<javac srcdir="test_src" destdir="bin" debug="yes">
<classpath refid="test.classpath" />
</javac>
</target>
<target depends="init" name="build-fsc">
<echo message="${ant.project.name}: ${ant.file}"/>
<fsc srcdir="src" destdir="bin">
<classpath refid="build.classpath" />
</fsc>
<javac srcdir="src" destdir="bin">
<classpath refid="build.classpath" />
</javac>
<fsc srcdir="test_src" destdir="bin">
<classpath refid="test.classpath" />
</fsc>
<javac srcdir="test_src" destdir="bin">
<classpath refid="test.classpath" />
</javac>
</target>
<target depends="build,jar-only" name="jar">
</target>
<target name="jar-only">
<echo message="${ant.project.name}: ${ant.file}"/>
<mkdir dir="dist"/>
<jar basedir="bin" destfile="dist/${ant.project.name}.jar">
</jar>
</target>
-->
</project>