forked from tkral/play-redis
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
84 lines (76 loc) · 2.93 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="redis" default="build" basedir=".">
<target name="check" unless="play.path">
<fail message="Please specify Play framework path using -Dplay.path=/path/to/framework/home" />
</target>
<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>
<target name="build" depends="compile">
<mkdir dir="lib" />
<copy todir="tmp/classes">
<fileset dir="src">
<include name="**/*.properties"/>
<include name="**/*.xml"/>
<include name="**/play.plugins"/>
<include name="**/play.static"/>
</fileset>
</copy>
<jar destfile="lib/play-redis.jar" basedir="tmp/classes">
<manifest>
<section name="Play-module">
<attribute name="Specification-Title" value="redis"/>
</section>
</manifest>
</jar>
</target>
<target name="clean" depends="check">
<delete dir="tmp" />
<delete dir="samples-and-tests/redis-cache/modules" />
<delete dir="samples-and-tests/twayis/modules" />
<delete file="lib/play-redis.jar" />
</target>
<target name="generate-sources" depends="clean">
<mkdir dir="tmp/generator-classes" />
<javac srcdir="src-generator/play/modules/redis/generator" destdir="tmp/generator-classes" target="1.8" debug="true">
<classpath>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${play.path}/framework/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
<java classname="play.modules.redis.generator.RedisGenerator"
failonerror="true"
fork="true">
<classpath>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
<pathelement location="tmp/generator-classes"/>
<fileset dir="${play.path}/framework/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
<!-- genereate-sources breaks for some reason, so just skip it for now-->
<!--target name="compile" depends="generate-sources"-->
<target name="compile" depends="clean">
<mkdir dir="tmp/classes" />
<javac srcdir="src" destdir="tmp/classes" target="1.8" debug="true">
<classpath refid="project.classpath" />
</javac>
</target>
</project>