| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
|
|---|
| 3 |
<!-- =================================================================== |
|---|
| 4 |
This file is imported by buildwar.xml and adds the targets |
|---|
| 5 |
which will be invoked by the buildwar targets. |
|---|
| 6 |
addLibs: add libraries for this platform |
|---|
| 7 |
doPlatform - misc stuff |
|---|
| 8 |
deployWar: deploy the war to the server |
|---|
| 9 |
deployEar: deploy the ear to the server |
|---|
| 10 |
=================================================================== --> |
|---|
| 11 |
|
|---|
| 12 |
<project name="bedework.platformWar" default="doPlatform" > |
|---|
| 13 |
<target name="doPlatform" > |
|---|
| 14 |
<property name="propval.app.tomcat.context.xml" |
|---|
| 15 |
location="${app.sou.dir}/war/META-INF/context.xml" /> |
|---|
| 16 |
<resolveFile name="app.tomcat.context.xml" |
|---|
| 17 |
file="${propval.app.tomcat.context.xml}" |
|---|
| 18 |
base="${app.sou.dir}"/> |
|---|
| 19 |
|
|---|
| 20 |
<copy tofile="${app.dest.metainf}/context.xml" |
|---|
| 21 |
file="${app.tomcat.context.xml}" |
|---|
| 22 |
overwrite="yes" > |
|---|
| 23 |
<filterset refid="property.filters" /> |
|---|
| 24 |
</copy> |
|---|
| 25 |
</target> |
|---|
| 26 |
|
|---|
| 27 |
<!-- ================================================================ |
|---|
| 28 |
Add libraries |
|---|
| 29 |
================================================================ --> |
|---|
| 30 |
|
|---|
| 31 |
<target name="addLibs"> |
|---|
| 32 |
<!-- Library in war file --> |
|---|
| 33 |
<property name="app.dest.lib" |
|---|
| 34 |
location="${app.dest.webinf}/lib" /> |
|---|
| 35 |
|
|---|
| 36 |
<!-- hibernate jars --> |
|---|
| 37 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.antlr}" /> |
|---|
| 38 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.asm-attrs}" /> |
|---|
| 39 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.asm}" /> |
|---|
| 40 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.cglib}" /> |
|---|
| 41 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.dom4j}" /> |
|---|
| 42 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.ehcache}" /> |
|---|
| 43 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.hibernate}" /> |
|---|
| 44 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.javassist}" /> |
|---|
| 45 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.jgroups}" /> |
|---|
| 46 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.jta}" /> |
|---|
| 47 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.slf4j-api}" /> |
|---|
| 48 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.slf4j-log4j12}" /> |
|---|
| 49 |
|
|---|
| 50 |
<!-- jms support --> |
|---|
| 51 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.activemq-core}" /> |
|---|
| 52 |
<copy todir="${app.dest.lib}" |
|---|
| 53 |
file="${org.bedework.appjar.geronimo-j2ee-management_1.0_spec}" /> |
|---|
| 54 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.jms}" /> |
|---|
| 55 |
|
|---|
| 56 |
<if> |
|---|
| 57 |
<isset property="org.bedework.build.caldav.google" /> |
|---|
| 58 |
<then> |
|---|
| 59 |
<copy todir="${app.dest.lib}"> |
|---|
| 60 |
<fileset dir="${google.dir}"> |
|---|
| 61 |
<include name="*.jar"/> |
|---|
| 62 |
</fileset> |
|---|
| 63 |
</copy> |
|---|
| 64 |
</then> |
|---|
| 65 |
</if> |
|---|
| 66 |
|
|---|
| 67 |
<!-- =============================================================== |
|---|
| 68 |
Any jar files required |
|---|
| 69 |
=============================================================== --> |
|---|
| 70 |
|
|---|
| 71 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-annotations}" /> |
|---|
| 72 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.rpiaccess}" /> |
|---|
| 73 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.rpiutil}" /> |
|---|
| 74 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-davio}" /> |
|---|
| 75 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-apiutil}" /> |
|---|
| 76 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calcore}" /> |
|---|
| 77 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calcorei}" /> |
|---|
| 78 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calfacade}" /> |
|---|
| 79 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calsvc}" /> |
|---|
| 80 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calsvci}" /> |
|---|
| 81 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-client}" /> |
|---|
| 82 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-icalendar}" /> |
|---|
| 83 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-logging}" /> |
|---|
| 84 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-mail}" /> |
|---|
| 85 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-sysevents}" /> |
|---|
| 86 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-appcommon}" /> |
|---|
| 87 |
|
|---|
| 88 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.lucene-core}"/> |
|---|
| 89 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.lucene-misc}"/> |
|---|
| 90 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.backport-util-concurrent}"/> |
|---|
| 91 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.ical4j}"/> |
|---|
| 92 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-codec}"/> |
|---|
| 93 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-collections}"/> |
|---|
| 94 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-httpclient}"/> |
|---|
| 95 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-lang}"/> |
|---|
| 96 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-ssl}"/> |
|---|
| 97 |
|
|---|
| 98 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.log4j}"/> |
|---|
| 99 |
|
|---|
| 100 |
<!-- Mail related stuff --> |
|---|
| 101 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.activation}" /> |
|---|
| 102 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.dsn}" /> |
|---|
| 103 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.imap}" /> |
|---|
| 104 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.mailapi}" /> |
|---|
| 105 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.pop3}" /> |
|---|
| 106 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.smtp}" /> |
|---|
| 107 |
|
|---|
| 108 |
<!-- any extra files--> |
|---|
| 109 |
<copy todir="${app.dest.lib}" > |
|---|
| 110 |
<fileset dir="${org.bedework.temp.extrajars.dir}" /> |
|---|
| 111 |
</copy> |
|---|
| 112 |
|
|---|
| 113 |
<if> |
|---|
| 114 |
<isset property="org.bedework.strutsapp" /> |
|---|
| 115 |
<then> |
|---|
| 116 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.serializer}"/> |
|---|
| 117 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.xalan}"/> |
|---|
| 118 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.struts}"/> |
|---|
| 119 |
|
|---|
| 120 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-beanutils}"/> |
|---|
| 121 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-digester}"/> |
|---|
| 122 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-fileupload}"/> |
|---|
| 123 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-logging}"/> |
|---|
| 124 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-validator}"/> |
|---|
| 125 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.jakarta-oro}"/> |
|---|
| 126 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.jstl}"/> |
|---|
| 127 |
<copy todir="${app.dest.lib}" file="${org.bedework.appjar.jstl-standard}"/> |
|---|
| 128 |
</then> |
|---|
| 129 |
</if> |
|---|
| 130 |
</target> |
|---|
| 131 |
|
|---|
| 132 |
<!-- ================================================================ |
|---|
| 133 |
Deploy war |
|---|
| 134 |
================================================================ --> |
|---|
| 135 |
|
|---|
| 136 |
<target name="deployWar"> |
|---|
| 137 |
<echo message="***************************************************************" /> |
|---|
| 138 |
<echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" /> |
|---|
| 139 |
<echo message="***************************************************************" /> |
|---|
| 140 |
|
|---|
| 141 |
<!-- copy the war file. --> |
|---|
| 142 |
<copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}" file="${app.war.file}" |
|---|
| 143 |
overwrite="yes" /> |
|---|
| 144 |
|
|---|
| 145 |
<!-- Delete expanded version --> |
|---|
| 146 |
<delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" /> |
|---|
| 147 |
|
|---|
| 148 |
<!-- Delete the quickstart context def --> |
|---|
| 149 |
<delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" /> |
|---|
| 150 |
</target> |
|---|
| 151 |
|
|---|
| 152 |
<!-- ================================================================ |
|---|
| 153 |
Deploy ear |
|---|
| 154 |
================================================================ --> |
|---|
| 155 |
|
|---|
| 156 |
<target name="deployEar"> |
|---|
| 157 |
<!-- Noop for tomcat --> |
|---|
| 158 |
</target> |
|---|
| 159 |
</project> |
|---|