forked from branaway/Japid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
96 lines (85 loc) · 2.96 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
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- Don't run ant directly. Use "play build-module" instead -->
<project name="japid" default="build.japidplay" basedir=".">
<property name="classes.standalone" value="tmp/classes.standalone" />
<property name="classes.play" value="tmp/classes.play" />
<property name="src.japidplay" value="src.japidplay" />
<property name="src.japid" value="src.japid" />
<property name="version" value="0.9.12"/>
<path id="project.classpath">
<pathelement path="${play.path}/framework/classes" />
<fileset dir="${play.path}/framework/lib">
<include name="*.jar" />
</fileset>
<fileset dir="${play.path}/framework">
<include name="*.jar" />
</fileset>
<fileset dir="lib">
<include name="*.jar" />
</fileset>
</path>
<path id="project.classpath.standalone">
<fileset dir="lib.plain">
<include name="*.jar" />
</fileset>
<fileset dir="lib">
<include name="*.jar" />
</fileset>
</path>
<target name="build.japidplay" depends="build.japid, compile.japidplay"
description="build the whole thing, the standard Japis first, then the Play adapters">
<copy todir="${classes.play}">
<fileset dir="${src.japidplay}">
<include name="**/*.properties" />
<include name="**/*.xml" />
<include name="**/play.plugins" />
<include name="**/play.static" />
</fileset>
</copy>
<delete>
<fileset dir="lib" includes="japidplay-*.jar"/>
</delete>
<jar destfile="lib/japidplay-${version}.jar" basedir="${classes.play}">
<manifest>
<section name="Japid-Play-module">
<attribute name="Specification-Title" value="japidplay" />
</section>
</manifest>
</jar>
<delete dir="tmp" />
</target>
<target name="build.japid" depends="compile.japid"
description="build the standard Japid jar without Play dependency.">
<copy todir="${classes.standalone}">
<fileset dir="${src.japid}">
<include name="**/*.properties" />
<include name="**/*.xml" />
</fileset>
</copy>
<delete>
<fileset dir="lib" includes="japid-*.jar"/>
</delete>
<jar destfile="lib/japid-${version}.jar" basedir="${classes.standalone}">
<manifest>
<section name="Japid Standalone">
<attribute name="Specification-Title" value="japid" />
</section>
</manifest>
</jar>
<delete dir="${classes.standalone}" />
</target>
<target name="compile.japidplay" description="compile the Japid-Play adapters">
<echo>compile japid.play </echo>
<mkdir dir="${classes.play}" />
<javac includeAntRuntime="false" srcdir="${src.japidplay}" destdir="${classes.play}" target="1.5" encoding="UTF-8" debug="true">
<classpath refid="project.classpath" />
</javac>
</target>
<target name="compile.japid">
<echo>compile japid standalone</echo>
<mkdir dir="${classes.standalone}" />
<javac includeAntRuntime="false" srcdir="${src.japid}" destdir="${classes.standalone}" target="1.5" encoding="UTF-8" debug="true">
<classpath refid="project.classpath.standalone" />
</javac>
</target>
</project>