Repository navigation
Expand file tree
/
Copy pathbuild.xml
More file actions
96 lines (79 loc) · 3.29 KB
/
Copy pathbuild.xml
File metadata and controls
96 lines (79 loc) · 3.29 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
84
85
86
87
88
89
90
91
92
93
94
95
96
<?xml version="1.0" encoding="utf-8" ?>
<project name="OldGinExample" default="devmode" basedir=".">
<description>
Example build file for GIN projects.
</description>
<!-- Access to environment variables. -->
<property environment="env"/>
<!-- Read configuration (gwt environment) from properties file -->
<property file="build.properties"/>
<!-- GWT installation directory; can be passed as Ant property gwt.home,
or can be provided by system property GWT_HOME. -->
<property name="gwt.home" value="${env.GWT_HOME}"/>
<!-- Output config -->
<property name="bin.dir" value="bin"/>
<property name="javac.out.dir" value="${bin.dir}/java"/>
<property name="gwt.web.out.dir" value="${bin.dir}/web"/>
<property name="gwt.devmode.out.dir" value="${bin.dir}/devmode"/>
<!-- Source files -->
<property name="src.dir" value="src"/>
<!-- Module name -->
<property name="gwt.module" value="com.google.gwt.gin.higherlower.HigherLower" />
<!-- Library directory containing the GIN and Guice binary jars -->
<property name="lib.dir" value="lib"/>
<!-- Javac class path -->
<path id="javac.path">
<pathelement path="${lib.dir}/aopalliance.jar"/>
<pathelement path="${lib.dir}/gin-1.5-post-gwt-2.2.jar"/>
<pathelement path="${lib.dir}/guice-snapshot.jar"/>
<pathelement path="${lib.dir}/javax.inject.jar" />
<pathelement path="${lib.dir}/guice-assistedinject-snapshot.jar" />
<pathelement path="${gwt.home}/gwt-user.jar"/>
</path>
<!-- Classpath for GWT compilation -->
<path id="gwt.path">
<!-- Sources -->
<path location="${src.dir}"/>
<!-- Location of the GWT compiler and libraries -->
<pathelement path="${gwt.home}/gwt-dev.jar"/>
<!-- GIN runs Guice at GWT compile time, so it needs the compiled project sources -->
<path location="${javac.out.dir}"/>
<!-- All other binary dependencies, as used by javac -->
<path refid="javac.path"/>
</path>
<target name="compile" depends="clean"
description="Compiles Java types needed during GWT compilation">
<mkdir dir="${javac.out.dir}"/>
<javac srcdir="${src.dir}" destdir="${javac.out.dir}" debug="on"
debuglevel="lines,vars,source" source="1.5">
<classpath refid="javac.path"/>
</javac>
</target>
<target name="web" depends="compile" description="GWT Web Compilation">
<mkdir dir="${gwt.web.out.dir}"/>
<java fork="true" maxmemory="256M" classpathref="gwt.path"
classname="com.google.gwt.dev.Compiler">
<arg value="-war"/>
<arg value="${gwt.web.out.dir}"/>
<arg value="${gwt.module}"/>
</java>
</target>
<!-- GWT's development mode, allows debugging of the application in your browser. -->
<!-- Only works with GWT 2.0 and later. -->
<target name="devmode" depends="compile" description="GWT Development Mode (GWT 2.0+ only)">
<java failonerror="true" fork="true" classpathref="gwt.path"
classname="com.google.gwt.dev.DevMode">
<jvmarg value="-Xmx256M"/>
<arg value="-startupUrl"/>
<arg value="${gwt.module}/HigherLower.html" />
<arg value="-war"/>
<arg value="${gwt.web.out.dir}" />
<arg value="-logLevel"/>
<arg value="INFO" />
<arg value="${gwt.module}"/>
</java>
</target>
<target name="clean">
<delete dir="${bin.dir}"/>
</target>
</project>