| 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 Tomcat Catalina. |
| 12 |
Because it updates stuff in the common/lib directory, this update |
| 13 |
needs to restart Catalina before core changes to axis take. |
| 14 |
</description> |
| 15 |
|
| 16 |
<property name="axis.home" location=".." /> |
| 17 |
&properties; |
| 18 |
&paths; |
| 19 |
|
| 20 |
|
| 21 |
<!-- init the deploy by probing for catalina --> |
| 22 |
<target name="init"> |
| 23 |
<fail unless="env.CATALINA_HOME"> |
| 24 |
Tomcat Catalina not found; please set CATALINA_HOME to point to it |
| 25 |
</fail> |
| 26 |
<property name="deploy.lib.dir" |
| 27 |
location="${env.CATALINA_HOME}/common/lib"/> |
| 28 |
<property name="deploy.webapp.dir" |
| 29 |
location="${env.CATALINA_HOME}/webapps/axis"/> |
| 30 |
<mkdir dir="${deploy.webapp.dir}" /> |
| 31 |
</target> |
| 32 |
|
| 33 |
<!-- deployment target --> |
| 34 |
<target name="deploy" depends="init" |
| 35 |
description="deploy to catalina"> |
| 36 |
|
| 37 |
<!-- webapp unzipped --> |
| 38 |
<copy todir="${deploy.webapp.dir}"> |
| 39 |
<fileset dir="${build.webapp}" |
| 40 |
includes="**/*"/> |
| 41 |
</copy> |
| 42 |
|
| 43 |
<!-- shared lib stuff --> |
| 44 |
<copy todir="${deploy.lib.dir}"> |
| 45 |
<fileset dir="${build.lib}"> |
| 46 |
<include name="saaj.jar" /> |
| 47 |
<include name="jaxrpc.jar" /> |
| 48 |
</fileset> |
| 49 |
</copy> |
| 50 |
<!-- be helpful --> |
| 51 |
<echo message="Axis deployed, restart Tomcat"/> |
| 52 |
</target> |
| 53 |
|
| 54 |
|
| 55 |
<target name="default" depends="deploy" /> |
| 56 |
|
| 57 |
<!-- this task can die horribly when the jars are in use |
| 58 |
setting failonerror would avoid that, but we want to fail |
| 59 |
visibly so people notice. --> |
| 60 |
<target name="clean" depends="init" |
| 61 |
description="clean deployment"> |
| 62 |
<delete dir="${deploy.webapp.dir}"/> |
| 63 |
<delete> |
| 64 |
<fileset dir="${deploy.lib.dir}" > |
| 65 |
<include name="saaj.jar" /> |
| 66 |
<include name="jaxrpc.jar" /> |
| 67 |
</fileset> |
| 68 |
</delete> |
| 69 |
|
| 70 |
</target> |
| 71 |
</project> |