-
Notifications
You must be signed in to change notification settings - Fork 51
/
build.xml
50 lines (39 loc) · 1.49 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Scala" default="build" basedir=".">
<path id="project.classpath">
<pathelement path="${play.path}/framework/classes"/>
<fileset dir="${play.path}/framework/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="build">
<taskdef resource="scala/tools/ant/antlib.xml">
<classpath refid="project.classpath" />
</taskdef>
<mkdir dir="tmp/classes" />
<scalac srcdir="src" destdir="tmp/classes" force="changed">
<classpath refid="project.classpath" />
</scalac>
<javac srcdir="src" destdir="tmp/classes" debug="true">
<classpath refid="project.classpath" />
</javac>
<copy todir="tmp/classes">
<fileset dir="src">
<include name="**/*.properties"/>
<include name="**/*.xml"/>
<include name="**/play.plugins"/>
</fileset>
</copy>
<jar destfile="lib/play-scala.jar" basedir="tmp/classes">
<manifest>
<section name="Play">
<attribute name="Specification-Title" value="Scala"/>
</section>
</manifest>
</jar>
<delete dir="tmp" />
</target>
</project>