File: deploy_catalina_local.xml

package info (click to toggle)
axis 1.4-29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 52,100 kB
  • sloc: java: 129,124; xml: 10,602; jsp: 983; sh: 84; cs: 36; makefile: 18
file content (71 lines) | stat: -rw-r--r-- 2,133 bytes parent folder | download | duplicates (10)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0"?>
<!DOCTYPE project [
  <!ENTITY properties SYSTEM "file:properties.xml">
  <!ENTITY paths  SYSTEM "file:path_refs.xml">
  <!ENTITY taskdefs SYSTEM "file:taskdefs.xml">
  <!ENTITY taskdefs_post_compile SYSTEM "xmls/taskdefs_post_compile.xml">
]>

<project name="deploy" default="default" basedir=".">
  <description>
    This build file deploys axis to a local version of Tomcat Catalina.
    Because it updates stuff in the common/lib directory, this update
    needs to restart Catalina before core changes to axis take.
  </description>

  <property name="axis.home" location=".." />
  &properties;
  &paths;


  <!-- init the deploy by probing for catalina -->
  <target name="init">
    <fail unless="env.CATALINA_HOME"> 
      Tomcat Catalina not found; please set CATALINA_HOME to point to it 
    </fail>
    <property name="deploy.lib.dir" 
      location="${env.CATALINA_HOME}/common/lib"/>
    <property name="deploy.webapp.dir" 
      location="${env.CATALINA_HOME}/webapps/axis"/>
    <mkdir dir="${deploy.webapp.dir}" />
  </target>

  <!-- deployment target -->
  <target name="deploy" depends="init"
    description="deploy to catalina">
      
    <!-- webapp unzipped -->
    <copy todir="${deploy.webapp.dir}">
      <fileset dir="${build.webapp}"
        includes="**/*"/>
    </copy>
    
    <!-- shared lib stuff -->
    <copy todir="${deploy.lib.dir}">
      <fileset dir="${build.lib}">
        <include name="saaj.jar" />
        <include name="jaxrpc.jar" />
      </fileset>
    </copy>
    <!-- be helpful -->
    <echo message="Axis deployed, restart Tomcat"/>
  </target>

  
  <target name="default" depends="deploy" />
  
  <!-- this task can die horribly when the jars are in use
      setting failonerror would avoid that, but we want to fail 
      visibly so people notice. -->
  <target name="clean" depends="init"
    description="clean deployment">
    <delete dir="${deploy.webapp.dir}"/>
    <delete>
      <fileset dir="${deploy.lib.dir}" >
        <include name="saaj.jar" />
        <include name="jaxrpc.jar" />
      </fileset>
    </delete>

  </target>
</project>