1 <?xml version="1.0" encoding="UTF-8"?>
3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to You under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License. You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
18 <!-- @author Peter Rossbach -->
20 <project name="status"
21 default="status" basedir=".">
23 <property name="profile" value=""/>
24 <property file="jkstatus${profile}.properties"/>
25 <property file="jkstatus${profile}.properties.default"/>
27 <path id="jkstatus.path">
28 <fileset dir="${catalina.home}/bin">
29 <include name="commons-logging-api-*.jar"/>
31 <pathelement location="${catalina.home}/server/lib/catalina-ant.jar"/>
32 <pathelement location="../dist/tomcat-jkstatus-ant.jar"/>
33 <pathelement location="${catalina.home}/server/lib/tomcat-util.jar"/>
36 <taskdef resource="org/apache/jk/status/jkstatus.tasks">
37 <classpath refid="jkstatus.path"/>
41 ########################################################################################################
43 ########################################################################################################
46 depends="-status-modjk-access"
47 description="got jk status" />
50 depends="-status-modjk-reset"
51 description="reset jk status" />
54 ########################################################################################################
56 ########################################################################################################
58 <target name="-status-modjk-access">
59 <jkStatus url="${jkstatus.url}"
60 username="${jkstatus.username}"
61 password="${jkstatus.password}"
62 resultproperty="jkstatus.before"
65 <echoproperties prefix="jkstatus" />
66 <jkUpdateWorker url="${jkstatus.url}"
67 username="${jkstatus.username}"
68 password="${jkstatus.password}"
69 loadbalancer="${jkstatus.testlb}"
70 worker="${jkstatus.testworker}"
73 <jkUpdateLoadbalancer url="${jkstatus.url}"
74 username="${jkstatus.username}"
75 password="${jkstatus.password}"
76 loadbalancer="${jkstatus.testlb}"
79 <jkStatus url="${jkstatus.url}"
80 username="${jkstatus.username}"
81 password="${jkstatus.password}"
82 resultproperty="workerafter"
84 <echoproperties prefix="jkstatus.after" />
87 <target name="-status-modjk-reset">
88 <jkStatus url="${jkstatus.url}"
89 username="${jkstatus.username}"
90 password="${jkstatus.password}"
91 resultproperty="jkstatus.before"
93 <echoproperties prefix="jkstatus.before" />
95 <jkReset url="${jkstatus.url}"
96 username="${jkstatus.username}"
97 password="${jkstatus.password}"
98 loadbalancer="${jkstatus.testlb}"
99 worker="${jkstatus.testworker}"
102 <jkStatus url="${jkstatus.url}"
103 username="${jkstatus.username}"
104 password="${jkstatus.password}"
105 resultproperty="jkstatus.after"
106 failOnError="false"/>
107 <echoproperties prefix="jkstatus.after" />