| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
|
|---|
| 3 |
<!-- =================================================================== |
|---|
| 4 |
terminations task. |
|---|
| 5 |
=================================================================== --> |
|---|
| 6 |
|
|---|
| 7 |
<project name="bwdeploy.termination" default="deploy" > |
|---|
| 8 |
<import file="${org.bedework.deployment.base}/deployprops.xml" /> |
|---|
| 9 |
|
|---|
| 10 |
<import file="${build.dir}/platforms/${org.bedework.global.deploy.platform}.xml" /> |
|---|
| 11 |
|
|---|
| 12 |
<dirname property="this.dir" file="${ant.file}"/> |
|---|
| 13 |
|
|---|
| 14 |
<target name="init"> |
|---|
| 15 |
</target> |
|---|
| 16 |
|
|---|
| 17 |
<target name="deploy" depends="init,build.configured" > |
|---|
| 18 |
<!-- copy startup website that sends you to the applications --> |
|---|
| 19 |
<property name="startup.website.dir" |
|---|
| 20 |
location="${org.bedework.appserver.dir}/${org.bedework.server.resource.root.dir}/bedework" /> |
|---|
| 21 |
<delete dir="${startup.website.dir}"/> |
|---|
| 22 |
<mkdir dir="${startup.website.dir}"/> |
|---|
| 23 |
<copy todir="${startup.website.dir}"> |
|---|
| 24 |
<fileset dir="${app.root.dir}/resources/bedework"/> |
|---|
| 25 |
</copy> |
|---|
| 26 |
|
|---|
| 27 |
<!-- copy any jars required in the server lib (jdbc etc) --> |
|---|
| 28 |
<if> |
|---|
| 29 |
<available file="${org.bedework.global.ext.lib}/server" type="dir" /> |
|---|
| 30 |
<then> |
|---|
| 31 |
<copy todir="${appserver.lib.dir}" flatten="yes" > |
|---|
| 32 |
<fileset dir="${org.bedework.global.ext.lib}/server"> |
|---|
| 33 |
<include name="*.jar"/> |
|---|
| 34 |
</fileset> |
|---|
| 35 |
</copy> |
|---|
| 36 |
</then> |
|---|
| 37 |
</if> |
|---|
| 38 |
|
|---|
| 39 |
<if> |
|---|
| 40 |
<isset property="org.bedework.global.extra.jars" /> |
|---|
| 41 |
<then> |
|---|
| 42 |
<foreach list="${org.bedework.global.extra.jars}" |
|---|
| 43 |
target="copyToServer" |
|---|
| 44 |
param="org.bedework.extra.jar" |
|---|
| 45 |
inheritall="true" |
|---|
| 46 |
trim="true" /> |
|---|
| 47 |
</then> |
|---|
| 48 |
</if> |
|---|
| 49 |
|
|---|
| 50 |
<if> |
|---|
| 51 |
<available file="${java.tools.jar}" /> |
|---|
| 52 |
<then> |
|---|
| 53 |
<copy todir="${appserver.lib.dir}" file="${java.tools.jar}"/> |
|---|
| 54 |
</then> |
|---|
| 55 |
</if> |
|---|
| 56 |
|
|---|
| 57 |
<!-- Platform specific --> |
|---|
| 58 |
<antcall target="doPlatform" inheritRefs="true" /> |
|---|
| 59 |
</target> |
|---|
| 60 |
|
|---|
| 61 |
<target name="build.configured" depends="init" > |
|---|
| 62 |
</target> |
|---|
| 63 |
|
|---|
| 64 |
<target name="copyToServer"> |
|---|
| 65 |
<copy todir="${appserver.lib.dir}" file="${org.bedework.extra.jar}" /> |
|---|
| 66 |
</target> |
|---|
| 67 |
</project> |
|---|