-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanage.xml
28 lines (20 loc) · 1.08 KB
/
manage.xml
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
<project name="HelloStelligent" default="tomcat.deploy" basedir=".">
<property name="deploy.url" value="http://127.0.0.1:8080/manager"/>
<property name="deploy.context" value="/"/>
<path id="dependency.path">
<fileset dir="${tomcat.dir}" includes="lib/*.jar" />
</path>
<taskdef resource="org/apache/catalina/ant/catalina.tasks" classpathref="dependency.path" />
<target name="tomcat.undeploy">
<undeploy url="${deploy.url}" failOnError="false" username="${deploy.user}" password="${deploy.pass}" path="${deploy.context}"/>
</target>
<target name="tomcat.deploy" depends="tomcat.undeploy">
<deploy url="${deploy.url}" username="${deploy.user}" password="${deploy.pass}" path="${deploy.context}" war="${deploy.war}"/>
</target>
<target name="tomcat.start">
<start url="${deploy.url}" failOnError="false" username="${deploy.user}" password="${deploy.pass}" path="${deploy.context}"/>
</target>
<target name="tomcat.stop">
<stop url="${deploy.url}" failOnError="false" username="${deploy.user}" password="${deploy.pass}" path="${deploy.context}"/>
</target>
</project>