File: deploy_jboss_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 (57 lines) | stat: -rw-r--r-- 1,973 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
<?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 JBoss.
    It does not attempt to integrate with JBoss.NET, whose versions
    of Axis will clash witha new build.
    Read http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages/JBoss
    before continuing. 
  </description>

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


  <!-- init the deploy by probing for catalina -->
  <target name="init">
    <fail unless="env.JBOSS_HOME"> 
      JBoss not found; please set JBOSS_HOME to point to it 
    </fail>
    <property name="deploy.dir" 
      location="${env.JBOSS_HOME}/server/default/deploy"/>
  </target>

  <!-- deployment target -->
  <target name="deploy" depends="init"
    description="deploy to jboss">

    <available file="${axis.war}" property="webapp.found"/>
    <fail unless="webapp.found">Could not find ${build.webapp.war}; please run "ant war" to build it</fail>     
    <!-- webapp goes over as the WAR; jboss will pick it up and expand it
     Overwriting is used to force install this over anything newer. Why so? So that even if this script and WAR
     were on a CD that ops wanted to use to restore a system, the copy has to go through -->
    <copy todir="${deploy.dir}" file="${axis.war}" overwrite="true"/>
    <!-- be helpful -->
    <echo message="Axis deployed"/>
  </target>

  
  <target name="default" depends="deploy" />
  
  <!--
    Question: what does JBoss do when a war is deleted?     
      -->
  <target name="clean" depends="init"
    description="clean deployment">
    <delete file="${deploy.dir}/${axis.war.filename}"/>
    
  </target>
</project>