| <?xml version="1.0" encoding="utf-8"?> |
| |
| <!-- |
| Tests the basic functionality of the Batik samples by checking |
| their content-type: if a sample gives an error instead of |
| generating an image, its content-type will be text/html. |
| |
| @author bdelacretaz@apache.org |
| |
| $Id: samples-mime-types.xml,v 1.4 2004/02/10 07:47:49 bdelacretaz Exp $ |
| --> |
| |
| <project name="batik-samples-mime-types" default="batik-samples-mime-types"> |
| |
| <group id="default"> |
| <property name="usetidy" value="false"/> |
| </group> |
| |
| <target name="batik-samples-mime-types"> |
| <property name="helloWorldBaseUrl" value="${anteater.env.cocoon}/samples/hello-world"/> |
| <property name="batikBaseUrl" value="${anteater.env.cocoon}/samples/batik"/> |
| |
| <httpRequest href="${helloWorldBaseUrl}/hello.svg"> |
| <match> |
| <header name="Content-type" value="image/svg+xml"/> |
| </match> |
| </httpRequest> |
| |
| <httpRequest href="${batikBaseUrl}/hello.jpeg"> |
| <match> |
| <header name="Content-type" value="image/jpeg"/> |
| </match> |
| </httpRequest> |
| |
| <httpRequest href="${batikBaseUrl}/hello.png"> |
| <match> |
| <header name="Content-type" value="image/png"/> |
| </match> |
| </httpRequest> |
| |
| <httpRequest href="${batikBaseUrl}/batikLogo.svg"> |
| <match> |
| <header name="Content-type" value="image/svg+xml"/> |
| </match> |
| </httpRequest> |
| |
| <httpRequest href="${batikBaseUrl}/batikLogo.jpeg"> |
| <match> |
| <header name="Content-type" value="image/jpeg"/> |
| </match> |
| </httpRequest> |
| |
| <httpRequest href="${batikBaseUrl}/batikLogo.png"> |
| <match> |
| <header name="Content-type" value="image/png"/> |
| </match> |
| </httpRequest> |
| |
| <httpRequest href="${batikBaseUrl}/henryV.svg"> |
| <match> |
| <header name="Content-type" value="image/svg+xml"/> |
| </match> |
| </httpRequest> |
| |
| <httpRequest href="${batikBaseUrl}/henryV.jpeg"> |
| <match> |
| <header name="Content-type" value="image/jpeg"/> |
| </match> |
| </httpRequest> |
| |
| <httpRequest href="${batikBaseUrl}/henryV.png"> |
| <match> |
| <header name="Content-type" value="image/png"/> |
| </match> |
| </httpRequest> |
| |
| <httpRequest href="${batikBaseUrl}/anne.svg"> |
| <match> |
| <header name="Content-type" value="image/svg+xml"/> |
| </match> |
| </httpRequest> |
| |
| <httpRequest href="${batikBaseUrl}/anne.jpeg"> |
| <match> |
| <header name="Content-type" value="image/jpeg"/> |
| </match> |
| </httpRequest> |
| |
| <httpRequest href="${batikBaseUrl}/anne.png"> |
| <match> |
| <header name="Content-type" value="image/png"/> |
| </match> |
| </httpRequest> |
| |
| </target> |
| |
| </project> |