Debian Codegraph @

xmls/deploy_jboss_local.xml

raw
1 <?xml version="1.0"?>
2 <!DOCTYPE project [
3 <!ENTITY properties SYSTEM "file:properties.xml">
4 <!ENTITY paths SYSTEM "file:path_refs.xml">
5 <!ENTITY taskdefs SYSTEM "file:taskdefs.xml">
6 <!ENTITY taskdefs_post_compile SYSTEM "xmls/taskdefs_post_compile.xml">
7 ]>
8
9 <project name="deploy" default="default" basedir=".">
10 <description>
11 This build file deploys axis to a local version of JBoss.
12 It does not attempt to integrate with JBoss.NET, whose versions
13 of Axis will clash witha new build.
14 Read http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages/JBoss
15 before continuing.
16 </description>
17
18 <property name="axis.home" location=".." />
19 &properties;
20 &paths;
21
22
23 <!-- init the deploy by probing for catalina -->
24 <target name="init">
25 <fail unless="env.JBOSS_HOME">
26 JBoss not found; please set JBOSS_HOME to point to it
27 </fail>
28 <property name="deploy.dir"
29 location="${env.JBOSS_HOME}/server/default/deploy"/>
30 </target>
31
32 <!-- deployment target -->
33 <target name="deploy" depends="init"
34 description="deploy to jboss">
35
36 <available file="${axis.war}" property="webapp.found"/>
37 <fail unless="webapp.found">Could not find ${build.webapp.war}; please run "ant war" to build it</fail>
38 <!-- webapp goes over as the WAR; jboss will pick it up and expand it
39 Overwriting is used to force install this over anything newer. Why so? So that even if this script and WAR
40 were on a CD that ops wanted to use to restore a system, the copy has to go through -->
41 <copy todir="${deploy.dir}" file="${axis.war}" overwrite="true"/>
42 <!-- be helpful -->
43 <echo message="Axis deployed"/>
44 </target>
45
46
47 <target name="default" depends="deploy" />
48
49 <!--
50 Question: what does JBoss do when a war is deleted?
51 -->
52 <target name="clean" depends="init"
53 description="clean deployment">
54 <delete file="${deploy.dir}/${axis.war.filename}"/>
55
56 </target>
57 </project>