-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild.xml
More file actions
83 lines (69 loc) · 2.23 KB
/
build.xml
File metadata and controls
83 lines (69 loc) · 2.23 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
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" encoding="UTF-8"?>
<project name="groovy" 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">
<fileset dir="lib">
<include name="*.jar"/>
<exclude name="play-groovy.jar"/>
</fileset>
</path>
<path id="play.classpath">
<pathelement path="${play.path}/framework/classes"/>
<fileset dir="${play.path}/framework/lib">
<include name="*.jar"/>
<exclude name="groovy-all-*.jar"/>
</fileset>
<fileset dir="${play.path}/framework">
<include name="*.jar"/>
</fileset>
</path>
<target name="build-compiler">
<taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc"
classpathref="project.classpath"/>
<delete dir="tmp"/>
<delete file="lib/play-groovy-compiler.jar"/>
<mkdir dir="tmp/compiler-classes"/>
<groovyc srcdir="src-compiler" destdir="tmp/compiler-classes" verbose="yes">
<classpath refid="play.classpath"/>
<classpath refid="project.classpath"/>
</groovyc>
<jar destfile="lib/play-groovy-compiler.jar" basedir="tmp/compiler-classes">
<manifest>
<section name="Play">
<attribute name="Specification-Title" value="Groovy Compiler"/>
</section>
</manifest>
</jar>
</target>
<target name="build" depends="check,build-compiler">
<delete dir="tmp"/>
<delete file="lib/play-groovy.jar"/>
<mkdir dir="tmp/classes"/>
<javac srcdir="src" destdir="tmp/classes" debug="true">
<classpath refid="play.classpath"/>
<classpath refid="project.classpath" />
</javac>
<copy todir="tmp/classes">
<fileset dir="src">
<include name="**/*.properties"/>
<include name="**/*.xml"/>
<include name="**/play.plugins"/>
</fileset>
</copy>
<java classname="play.groovysupport.build.ModuleBuilder" fork="true" maxmemory="1024m"
failonerror="true">
<jvmarg value="-Xms512m"/>
<classpath refid="play.classpath"/>
<classpath refid="project.classpath" />
</java>
<jar destfile="lib/play-groovy.jar" basedir="tmp/classes">
<manifest>
<section name="Play">
<attribute name="Specification-Title" value="Groovy"/>
</section>
</manifest>
</jar>
</target>
</project>