aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/vaadin-server.xml
blob: 3628483436d8b65fa9dbc0dae5b9078ada2508a2 (plain)
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
<?xml version="1.0"?>
<project xmlns:antcontrib="antlib:net.sf.antcontrib" xmlns:ivy="antlib:org.apache.ivy.ant" name="vaadin-server" default="deploy-and-start" basedir=".">
	<include file="../common.xml" />
	<dirname property="dir" file="${ant.file.vaadin-server}" />

	<target name="deploy-and-start">
		<fail unless="war.file" message="No war file given in 'war.file'" />

		<ivy:resolve file="${dir}/ivy.xml" />
		<ivy:cachepath pathid="classpath.jetty" conf="jetty-run" />
		<java classname="org.mortbay.jetty.runner.Runner" fork="yes">
			<arg value="--port" />
			<arg value="8888" />
			<arg value="${war.file}" />
			<classpath refid="classpath.jetty" />
			<jvmarg value="-ea" />
		</java>

	</target>

	<target name="wait-for-startup">
		<echo>Waiting for Servlet Container to start up.</echo>
		<waitfor maxwait="60" maxwaitunit="second" checkevery="5" checkeveryunit="second" timeoutproperty="server.start.failed">
			<http url="http://localhost:8888" />
		</waitfor>
		<fail if="server.start.failed" message="Server startup failed" />
	</target>

</project>