-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
116 lines (106 loc) · 4.4 KB
/
build.xml
File metadata and controls
116 lines (106 loc) · 4.4 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?xml version="1.0" encoding="UTF-8"?>
<project name="popcornhour-controller" default="start" basedir=".">
<property name="sources" value="${basedir}/src"/>
<property name="approot" value="${basedir}/war"/>
<property name="webroot" value="${approot}/WEB-INF"/>
<property name="appbinaries" value="${webroot}/classes"/>
<property name="applibraries" value="${webroot}/lib"/>
<property name="module" value="${ant.project.name}"/>
<property name="jetty" value="org.dyndns.merelin.pchrc.appserver.Jetty"/>
<fileset id="rtlibraries" dir="${applibraries}">
<include name="aopalliance.jar"/>
<include name="guice-2.0.jar"/>
<include name="gwt-servlet.jar"/>
<include name="jetty-6.1.24.jar"/>
<include name="jetty-util-6.1.24.jar"/>
<include name="jmdns-3.4.1.jar"/>
<include name="servlet-api-2.5.jar"/>
</fileset>
<fileset id="devlibraries" dir="${applibraries}">
<include name="gwt-dev.jar"/>
<include name="gwt-user.jar"/>
<include name="validation-api-1.0.0.GA.jar"/>
<include name="validation-api-1.0.0.GA-sources.jar"/>
</fileset>
<target name="clean">
<delete dir="${appbinaries}" failonerror="false"/>
<delete file="${applibraries}/${module}.jar" failonerror="false"/>
<delete file="${basedir}/${module}.war" failonerror="false"/>
</target>
<target name="build" depends="clean">
<mkdir dir="${appbinaries}"/>
<javac destdir="${appbinaries}" debug="on">
<src path="${sources}"/>
<include name="*/**"/>
<classpath>
<path>
<fileset refid="rtlibraries"/>
</path>
</classpath>
</javac>
</target>
<target name="pack" depends="gwtc">
<unjar dest="${appbinaries}">
<fileset refid="rtlibraries"/>
<patternset>
<exclude name="META-INF/**/*"/>
</patternset>
</unjar>
<jar jarfile="${applibraries}/${module}.jar">
<fileset dir="${appbinaries}" includes="**/*"/>
<manifest>
<attribute name="Main-Class" value="${jetty}"/>
</manifest>
</jar>
</target>
<target name="war" depends="pack">
<war destfile="${basedir}/${module}.war" webxml="${webroot}/web.xml">
<fileset dir="${appbinaries}" includes="Launcher.class"/>
<lib file="${applibraries}/${module}.jar"/>
<fileset dir="${approot}">
<exclude name="WEB-INF/classes/**/*"/>
<exclude name="WEB-INF/lib/**/*"/>
</fileset>
<manifest>
<attribute name="Main-Class" value="Launcher"/>
</manifest>
</war>
</target>
<target name="start" depends="war">
<java jar="${basedir}/${module}.war" fork="true">
<sysproperty key="java.net.preferIPv4Stack" value="true"/>
<sysproperty key="module.name" value="${module}"/>
<sysproperty key="jetty.class" value="${jetty}"/>
<!--sysproperty key="jetty.host" value="mantonyan"/-->
<sysproperty key="jetty.port" value="9090"/>
</java>
</target>
<target name="gwtc" depends="build">
<java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler">
<classpath>
<pathelement location="${sources}"/>
<path>
<fileset refid="rtlibraries"/>
<fileset refid="devlibraries"/>
</path>
</classpath>
<sysproperty key="java.net.preferIPv4Stack" value="true"/>
<arg value="org.dyndns.merelin.pchrc.Popcornhour_controller"/>
</java>
</target>
<target name="debug" depends="build">
<java failonerror="true" fork="true" classname="com.google.gwt.dev.DevMode">
<classpath>
<pathelement location="${sources}"/>
<path>
<fileset refid="rtlibraries"/>
<fileset refid="devlibraries"/>
</path>
</classpath>
<sysproperty key="java.net.preferIPv4Stack" value="true"/>
<arg value="-startupUrl"/>
<arg value="Popcornhour_controller.html"/>
<arg value="org.dyndns.merelin.pchrc.Popcornhour_controller"/>
</java>
</target>
</project>