ant tomcat restart
Tip 2013. 1. 5. 15:43 |tomcat/lib/catalina-ant.jar를 ant/lib/에 복사 후 아래처럼 한다
ant build file : build.xml
<?xml version="1.0" encoding="utf-8"?>
<project name="" default="" basedir=".">
<!-- Configure the context path for this application -->
<property name="path" value="/"/>
<!-- Configure properties to access the Manager application -->
<property name="url" value="http://localhost:8080/manager"/>
<property name="username" value="manager"/>
<property name="password" value="manager"/>
<!-- Configure the custom Ant tasks for the Manager application -->
<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/>
<taskdef name="list" classname="org.apache.catalina.ant.ListTask"/>
<taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask"/>
<taskdef name="resources" classname="org.apache.catalina.ant.ResourcesTask"/>
<taskdef name="roles" classname="org.apache.catalina.ant.RolesTask"/>
<taskdef name="start" classname="org.apache.catalina.ant.StartTask"/>
<taskdef name="stop" classname="org.apache.catalina.ant.StopTask"/>
<taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask"/>
<!-- Executable Targets -->
<target name="stop" description="Stop web application">
<stop url="${url}" username="${username}" password="${password}" path="${path}"/>
</target>
<target name="start" description="Start web application">
<start url="${url}" username="${username}" password="${password}" path="${path}"/>
</target>
</project>
'Tip' 카테고리의 다른 글
아이폰 동기화 무선으로 하기 (0) | 2015.05.07 |
---|---|
eclipse wtp jsp reload (0) | 2013.04.23 |
Hudson (0) | 2012.03.14 |
맥 마우스 휠 터치패드 방향 (0) | 2012.02.15 |
브라우저 캐쉬 경로 변경 (0) | 2012.01.28 |