| 1 |
<!-- |
|---|
| 2 |
This is the build.xml for UW Calendar which is called by the main build |
|---|
| 3 |
file to create a ear file. |
|---|
| 4 |
|
|---|
| 5 |
Properties which must be defined on entry, apart from those described |
|---|
| 6 |
in the main build file are: |
|---|
| 7 |
app.name Directory we build in, name of war and ear files. |
|---|
| 8 |
app.context.name Context root for the app |
|---|
| 9 |
app.war Name of the war file |
|---|
| 10 |
--> |
|---|
| 11 |
|
|---|
| 12 |
<project name="uwcal.buildear" default="build" basedir="."> |
|---|
| 13 |
|
|---|
| 14 |
<target name="build" |
|---|
| 15 |
description="Build ear file"> |
|---|
| 16 |
<property name="app.dest.home" |
|---|
| 17 |
location="${org.bedework.temp.ears.home}/${propval.ear.name}" /> |
|---|
| 18 |
<property name="app.dest.ear" |
|---|
| 19 |
location="${app.dest.home}/ear" /> |
|---|
| 20 |
<property name="app.dest.earinf" |
|---|
| 21 |
location="${app.dest.ear}/META-INF" /> |
|---|
| 22 |
|
|---|
| 23 |
<property name="app.ear.file" |
|---|
| 24 |
location="${dist.home}/${propval.ear.name}.ear" /> |
|---|
| 25 |
|
|---|
| 26 |
<copy tofile="${app.dest.earinf}/application.xml" |
|---|
| 27 |
file="${application.xml}" |
|---|
| 28 |
overwrite="yes" > |
|---|
| 29 |
<filterset> |
|---|
| 30 |
<filter token="DISPLAY-NAME" value="${propval.app.name}"/> |
|---|
| 31 |
<filter token="WAR-NAME" value="${propval.war.name}"/> |
|---|
| 32 |
<filter token="CONTEXT-ROOT" value="${propval.app.context.root}"/> |
|---|
| 33 |
</filterset> |
|---|
| 34 |
</copy> |
|---|
| 35 |
|
|---|
| 36 |
<jar jarfile="${app.ear.file}"> |
|---|
| 37 |
<fileset dir="${app.dest.ear}" > |
|---|
| 38 |
<include name="META-INF/*.xml" /> |
|---|
| 39 |
</fileset> |
|---|
| 40 |
<fileset dir="${dist.home}"> |
|---|
| 41 |
<include name="${propval.war.name}.war" /> |
|---|
| 42 |
</fileset> |
|---|
| 43 |
</jar> |
|---|
| 44 |
|
|---|
| 45 |
</target> |
|---|
| 46 |
</project> |
|---|