| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
|
|---|
| 3 |
<!-- =================================================================== |
|---|
| 4 |
Default public events web application deployer |
|---|
| 5 |
=================================================================== --> |
|---|
| 6 |
|
|---|
| 7 |
<project name="bwpublic.deploy" default="deploy" > |
|---|
| 8 |
<import file="${org.bedework.deployment.base}/deployprops.xml" /> |
|---|
| 9 |
|
|---|
| 10 |
<import file="${build.dir}/platforms/${org.bedework.global.deploy.platform}War.xml" /> |
|---|
| 11 |
|
|---|
| 12 |
<dirname property="this.dir" file="${ant.file}"/> |
|---|
| 13 |
|
|---|
| 14 |
<import file="${this.dir}/appjars.xml" /> |
|---|
| 15 |
|
|---|
| 16 |
<target name="init" > |
|---|
| 17 |
<getExtraJars /> |
|---|
| 18 |
|
|---|
| 19 |
<property name="app.war.file" |
|---|
| 20 |
location="${dist.home}/${propval.app.war.name}.war" /> |
|---|
| 21 |
|
|---|
| 22 |
<property name="app.sou.dir" location="${org.bedework.deploy.app.sou}" /> |
|---|
| 23 |
|
|---|
| 24 |
<property name="org.bedework.use.dojo" value="true" /> |
|---|
| 25 |
|
|---|
| 26 |
<property name="org.bedework.use.jquery" value="true" /> |
|---|
| 27 |
|
|---|
| 28 |
<!-- Flag as struts --> |
|---|
| 29 |
<property name="org.bedework.strutsapp" value="true" /> |
|---|
| 30 |
|
|---|
| 31 |
<!-- Properties that differ from the personal client --> |
|---|
| 32 |
<!-- |
|---|
| 33 |
<property name="app.web.xml" |
|---|
| 34 |
value="${app.sou.dir}/war/WEB-INF/web.xml" /> |
|---|
| 35 |
--> |
|---|
| 36 |
|
|---|
| 37 |
<property name="app.resources.dir" |
|---|
| 38 |
location="${this.dir}/resources" /> |
|---|
| 39 |
<echo message="app.resources.dir=${app.resources.dir}" /> |
|---|
| 40 |
</target> |
|---|
| 41 |
|
|---|
| 42 |
<!-- ================================================================= |
|---|
| 43 |
The "deploy" target first builds a configured component then copies |
|---|
| 44 |
all required files to the appropriate servlet container directories. |
|---|
| 45 |
|
|---|
| 46 |
Currently this only works for the quickstart distribution. |
|---|
| 47 |
For example, it does not handle deploying into jboss and copying |
|---|
| 48 |
resource files (images, stylesheets) to external locations. |
|---|
| 49 |
================================================================= --> |
|---|
| 50 |
|
|---|
| 51 |
<target name="deploy" depends="init,build.configured" > |
|---|
| 52 |
<!-- First copy the resources into the server --> |
|---|
| 53 |
|
|---|
| 54 |
<if> |
|---|
| 55 |
<not> |
|---|
| 56 |
<isset property="org.bedework.global.noskins" /> |
|---|
| 57 |
</not> |
|---|
| 58 |
<then> |
|---|
| 59 |
<delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}" /> |
|---|
| 60 |
<copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}"> |
|---|
| 61 |
<fileset dir="${app.resources.dir}/demoskins/${propval.app.cal.suite}" /> |
|---|
| 62 |
</copy> |
|---|
| 63 |
|
|---|
| 64 |
<if> |
|---|
| 65 |
<isset property="org.bedework.global.portal.platform" /> |
|---|
| 66 |
<then> |
|---|
| 67 |
<!-- The intent is to have a set of quickstart skins configured for |
|---|
| 68 |
portal use. So far we've not managed that so for the time being we |
|---|
| 69 |
will just use the standalone skin set. --> |
|---|
| 70 |
<property name="dest.skins.dir" |
|---|
| 71 |
location="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${org.bedework.global.portal.platform}.${propval.app.cal.suite}" /> |
|---|
| 72 |
<delete dir="${dest.skins.dir}" /> |
|---|
| 73 |
<copy todir="${dest.skins.dir}"> |
|---|
| 74 |
<fileset dir="${app.resources.dir}/demoskins/${propval.app.cal.suite}" /> |
|---|
| 75 |
</copy> |
|---|
| 76 |
</then> |
|---|
| 77 |
</if> |
|---|
| 78 |
</then> |
|---|
| 79 |
</if> |
|---|
| 80 |
|
|---|
| 81 |
<!-- Platform specific --> |
|---|
| 82 |
<antcall target="deployWar" inheritRefs="true" /> |
|---|
| 83 |
</target> |
|---|
| 84 |
|
|---|
| 85 |
<target name="build.configured" depends="init" > |
|---|
| 86 |
<!-- =============================================================== |
|---|
| 87 |
Build the war |
|---|
| 88 |
=============================================================== --> |
|---|
| 89 |
|
|---|
| 90 |
<ant antfile="${buildwar}" inheritRefs="true" target="build" /> |
|---|
| 91 |
</target> |
|---|
| 92 |
</project> |
|---|
| 93 |
|
|---|