1 |
<?xml version="1.0"?> |
2 |
|
3 |
<project name="Anteater-test" default="main"> |
4 |
<taskdef resource="META-INF/Anteater.tasks"/> |
5 |
<typedef resource="META-INF/Anteater.types"/> |
6 |
|
7 |
<property name="url" value="http://preview.cocoongt.localhost:50068"/> |
8 |
|
9 |
<target name="check-website"> |
10 |
<echo>Now downloading and testing ${url}</echo> |
11 |
<echo>Waiting 15 secs for server to boot</echo> |
12 |
<waitfor maxwait="15" maxwaitunit="second"><istrue value="false"/></waitfor> |
13 |
<echo>Done waiting</echo> |
14 |
<httpRequest href="${url}"> |
15 |
<match> |
16 |
<responseCode value="200"/> |
17 |
<header name="Content-Type" assign="contenttype"/> |
18 |
<regexp>Copyright</regexp> |
19 |
</match> |
20 |
</httpRequest> |
21 |
<echo>URL has Content-Type: ${contenttype}</echo> |
22 |
</target> |
23 |
|
24 |
<target name="main" depends="check-website"/> |
25 |
</project> |