| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <project name="Cocoon Stress Test" default="conditional"> |
| <taskdef resource="META-INF/Anteater.tasks"/> |
| <typedef resource="META-INF/Anteater.types"/> |
| <taskdef resource="net/sf/antcontrib/antcontrib.properties"/> |
| |
| <property name="url" value="${anteater.env.cocoon}/samples/xsp/java/resolver"/> |
| |
| <target name="conditional" depends="main,disabled"/> |
| <target name="disabled" unless="anteater.test.bug26186InternalRequestMemoryLeak.enabled"> |
| <echo>bug26186InternalRequestMemoryLeak disabled by configuration</echo> |
| </target> |
| <target name="main" if="anteater.test.bug26186InternalRequestMemoryLeak.enabled"> |
| <echo>base=${anteater.target.base.path}</echo> |
| <echo>disabled? ${anteater.test.bug26186InternalRequestMemoryLeak.disabled}</echo> |
| <foreach list="0,1,2,3,4,5" target="multiplier1" param="m1"/> |
| </target> |
| <target name="multiplier1"> |
| <foreach list="0,1,2,3,4,5,6,7,8,9" target="multiplier2" param="m2"/> |
| </target> |
| <target name="multiplier2"> |
| <foreach list="0,1,2,3,4,5,6,7,8,9" target="multiplier3" param="m3"/> |
| </target> |
| <target name="multiplier3"> |
| <foreach list="0,1,2,3,4,5,6,7,8,9" target="multiplier4" param="m4"/> |
| </target> |
| <target name="multiplier4"> |
| <foreach list="0,1,2,3,4,5,6,7,8,9" target="content" param="m5"/> |
| </target> |
| <target name="content"> |
| <echo>request no. ${m1}${m2}${m3}${m4}${m5}</echo> |
| <httpRequest href="${url}"> |
| <match> |
| <responseCode value="200"/> |
| <regexp>An XSP Page using a source</regexp> |
| </match> |
| </httpRequest> |
| </target> |
| </project> |
| |