source: trunk/SchedulingSystem/nbproject/ant-deploy.xml @ 36

Last change on this file since 36 was 20, checked in by fmguler, 15 years ago

Refs #2 - Scheduling System web uygulaması ilk import. Spring 3 kullanılıyor.

File size: 1.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<project default="-deploy-ant" basedir=".">
3    <target name="-init" if="deploy.ant.enabled">
4        <property file="${deploy.ant.properties.file}"/>
5        <tempfile property="temp.module.folder" prefix="tomcat" destdir="${java.io.tmpdir}"/>
6        <unwar src="${deploy.ant.archive}" dest="${temp.module.folder}">
7            <patternset includes="META-INF/context.xml"/>
8        </unwar>
9        <xmlproperty file="${temp.module.folder}/META-INF/context.xml"/>
10        <delete dir="${temp.module.folder}"/>
11    </target>
12    <target name="-deploy-ant" if="deploy.ant.enabled" depends="-init">
13        <echo message="Deploying ${deploy.ant.archive} to ${Context(path)}"/>
14        <taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"
15                 classpath="${tomcat.home}/lib/catalina-ant.jar"/>
16        <deploy url="${tomcat.url}/manager" username="${tomcat.username}"
17                password="${tomcat.password}" path="${Context(path)}"
18                war="${deploy.ant.archive}"/>
19        <property name="deploy.ant.client.url" value="${tomcat.url}${Context(path)}"/>
20    </target>
21    <target name="-undeploy-ant" if="deploy.ant.enabled" depends="-init">
22        <echo message="Undeploying ${Context(path)}"/>
23        <taskdef name="undeploy"  classname="org.apache.catalina.ant.UndeployTask"
24                classpath="${tomcat.home}/lib/catalina-ant.jar"/>
25        <undeploy url="${tomcat.url}/manager" username="${tomcat.username}" 
26                  password="${tomcat.password}" path="${Context(path)}"/>
27    </target>
28</project>
Note: See TracBrowser for help on using the repository browser.