| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
|
|---|
| 3 |
<!-- =================================================================== |
|---|
| 4 |
Unpack the war file built by the last build and copy it into a |
|---|
| 5 |
location suitable for the RPI jboss packaging process. |
|---|
| 6 |
|
|---|
| 7 |
This file needs to be copied into, and executed from, the quickstart |
|---|
| 8 |
build environment. |
|---|
| 9 |
=================================================================== --> |
|---|
| 10 |
|
|---|
| 11 |
<project name="rpi-uwcal" default="copyfiles"> |
|---|
| 12 |
|
|---|
| 13 |
<import file="bldfiles/globalDefs.xml"/> |
|---|
| 14 |
<property file="${user.home}/rpi.build.properties" /> |
|---|
| 15 |
<property file="${user.home}/uwcal.build.properties" /> |
|---|
| 16 |
|
|---|
| 17 |
<target name="init" depends="globalDefs"> |
|---|
| 18 |
</target> |
|---|
| 19 |
|
|---|
| 20 |
<target name="copyfiles" depends="init" > |
|---|
| 21 |
<echo message="==========================================================" /> |
|---|
| 22 |
<echo message="Use properties from ${org.bedework.clone.default}" /> |
|---|
| 23 |
<echo message="==========================================================" /> |
|---|
| 24 |
<property name="clone.properties" |
|---|
| 25 |
location="${org.bedework.config.base}/configs/${org.bedework.clone.default}.properties" /> |
|---|
| 26 |
<loadproperties srcFile="${clone.properties}" > |
|---|
| 27 |
<filterchain> |
|---|
| 28 |
<expandproperties/> |
|---|
| 29 |
</filterchain> |
|---|
| 30 |
</loadproperties> |
|---|
| 31 |
|
|---|
| 32 |
<property name="javalib.dest" |
|---|
| 33 |
location="${rpi.javalib.dir}/uwcal" /> |
|---|
| 34 |
<mkdir dir="${javalib.dest}" /> |
|---|
| 35 |
|
|---|
| 36 |
<property name="jars.dest" |
|---|
| 37 |
location="${javalib.dest}/jars" /> |
|---|
| 38 |
<delete dir="${jars.dest}" /> |
|---|
| 39 |
<mkdir dir="${jars.dest}" /> |
|---|
| 40 |
|
|---|
| 41 |
<!-- Copy generated jar files into our library --> |
|---|
| 42 |
<copy todir="${jars.dest}" > |
|---|
| 43 |
<fileset dir="${org.bedework.temp.jars}" > |
|---|
| 44 |
<exclude name="icalendar*.jar" /> |
|---|
| 45 |
<exclude name="cap*.jar" /> |
|---|
| 46 |
<exclude name="uwical*.jar" /> |
|---|
| 47 |
</fileset> |
|---|
| 48 |
</copy> |
|---|
| 49 |
|
|---|
| 50 |
<!-- In addition copy calendar specific library jar files into our library --> |
|---|
| 51 |
<copy todir="${jars.dest}" > |
|---|
| 52 |
<fileset dir="${org.bedework.default.lib}" > |
|---|
| 53 |
<include name="${ical4j.jar.name}" /> |
|---|
| 54 |
</fileset> |
|---|
| 55 |
</copy> |
|---|
| 56 |
|
|---|
| 57 |
<property name="clones.dest" |
|---|
| 58 |
location="${javalib.dest}/clones" /> |
|---|
| 59 |
<mkdir dir="${clones.dest}" /> |
|---|
| 60 |
|
|---|
| 61 |
<copy file="${clone.properties}" todir="${clones.dest}" overwrite="yes" /> |
|---|
| 62 |
|
|---|
| 63 |
<echo message="----------------------------------------------------------" /> |
|---|
| 64 |
<echo message="Unpacking war ${org.bedework.webadmin.war.name}.war" /> |
|---|
| 65 |
<echo message="----------------------------------------------------------" /> |
|---|
| 66 |
|
|---|
| 67 |
<property name="admin.dest" |
|---|
| 68 |
location="${javalib.dest}/${org.bedework.webadmin.war.name}" /> |
|---|
| 69 |
<delete dir="${admin.dest}" /> |
|---|
| 70 |
<mkdir dir="${admin.dest}" /> |
|---|
| 71 |
|
|---|
| 72 |
<unwar src="${dist.home}/${org.bedework.webadmin.war.name}.war" |
|---|
| 73 |
dest="${admin.dest}/war" /> |
|---|
| 74 |
|
|---|
| 75 |
<echo message="----------------------------------------------------------" /> |
|---|
| 76 |
<echo message="Unpacking war ${org.bedework.webpubevents.war.name}.war" /> |
|---|
| 77 |
<echo message="----------------------------------------------------------" /> |
|---|
| 78 |
|
|---|
| 79 |
<property name="pubevents.dest" |
|---|
| 80 |
location="${javalib.dest}/${org.bedework.webpubevents.war.name}" /> |
|---|
| 81 |
<delete dir="${pubevents.dest}" /> |
|---|
| 82 |
<mkdir dir="${pubevents.dest}" /> |
|---|
| 83 |
|
|---|
| 84 |
<unwar src="${dist.home}/${org.bedework.webpubevents.war.name}.war" |
|---|
| 85 |
dest="${pubevents.dest}/war" /> |
|---|
| 86 |
|
|---|
| 87 |
<echo message="----------------------------------------------------------" /> |
|---|
| 88 |
<echo message="Unpacking war ${org.bedework.webpersonal.war.name}.war" /> |
|---|
| 89 |
<echo message="----------------------------------------------------------" /> |
|---|
| 90 |
|
|---|
| 91 |
<property name="personal.dest" |
|---|
| 92 |
location="${javalib.dest}/${org.bedework.webpersonal.war.name}" /> |
|---|
| 93 |
<delete dir="${personal.dest}" /> |
|---|
| 94 |
<mkdir dir="${personal.dest}" /> |
|---|
| 95 |
|
|---|
| 96 |
<unwar src="${dist.home}/${org.bedework.webpersonal.war.name}.war" |
|---|
| 97 |
dest="${personal.dest}/war" /> |
|---|
| 98 |
|
|---|
| 99 |
<echo message="----------------------------------------------------------" /> |
|---|
| 100 |
<echo message="Unpacking war ${org.bedework.caldav.public.war.name}.war" /> |
|---|
| 101 |
<echo message="----------------------------------------------------------" /> |
|---|
| 102 |
|
|---|
| 103 |
<property name="pubcaldav.dest" |
|---|
| 104 |
location="${javalib.dest}/${org.bedework.caldav.public.war.name}" /> |
|---|
| 105 |
<delete dir="${pubcaldav.dest}" /> |
|---|
| 106 |
<mkdir dir="${pubcaldav.dest}" /> |
|---|
| 107 |
|
|---|
| 108 |
<unwar src="${dist.home}/${org.bedework.caldav.public.war.name}.war" |
|---|
| 109 |
dest="${pubcaldav.dest}/war" /> |
|---|
| 110 |
|
|---|
| 111 |
<echo message="----------------------------------------------------------" /> |
|---|
| 112 |
<echo message="Unpacking war ${org.bedework.caldav.user.war.name}.war" /> |
|---|
| 113 |
<echo message="----------------------------------------------------------" /> |
|---|
| 114 |
|
|---|
| 115 |
<property name="usercaldav.dest" |
|---|
| 116 |
location="${javalib.dest}/${org.bedework.caldav.user.war.name}" /> |
|---|
| 117 |
<delete dir="${usercaldav.dest}" /> |
|---|
| 118 |
<mkdir dir="${usercaldav.dest}" /> |
|---|
| 119 |
|
|---|
| 120 |
<unwar src="${dist.home}/${org.bedework.caldav.user.war.name}.war" |
|---|
| 121 |
dest="${usercaldav.dest}/war" /> |
|---|
| 122 |
</target> |
|---|
| 123 |
</project> |
|---|
| 124 |
|
|---|