Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 1.08 KB
<?xml version="1.0" encoding="UTF-8"?>
<project name="Deploy en varios servers Tomcat" default="deployServer">
<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/>
<target name="deployServer" depends="deployServer1, deployServer2"/>
<target name="deployServer1" if="tomcat.servidor1">
<deploy url="http://${tomcat.servidor1}/manager/text"
username="${tomcat.usuario}"
password="${tomcat.contrasena}"
path="/${project.build.finalName}"
war="file:${project.build.directory}/${project.build.finalName}.${project.packaging}" update="true"/>
</target>
<target name="deployServer2" if="tomcat.servidor2">
<deploy url="http://${tomcat.servidor1}/manager/text"
username="${tomcat.usuario}"
password="${tomcat.contrasena}"
path="/${project.build.finalName}"
war="file:${project.build.directory}/${project.build.finalName}.${project.packaging}" update="true"/>
</target>
</project>
You can’t perform that action at this time.