|
Revision 2680
(checked in by douglm, 3 years ago)
|
Take a look at running under geronimo - discovered block to progress
|
| Line | |
|---|
| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
|
|---|
| 3 |
<!-- =================================================================== |
|---|
| 4 |
This file is imported by buildwar.xml and adds a target |
|---|
| 5 |
doPlatform |
|---|
| 6 |
which will be invoked by the buildwar targets. |
|---|
| 7 |
=================================================================== --> |
|---|
| 8 |
|
|---|
| 9 |
<project name="bedework.platformWar" default="doPlatform" > |
|---|
| 10 |
<target name="doPlatform" > |
|---|
| 11 |
<!-- =============================================================== |
|---|
| 12 |
We create an updated geronimo-web.xml file (for geronimo) and a ear |
|---|
| 13 |
=============================================================== --> |
|---|
| 14 |
|
|---|
| 15 |
<copy todir="${app.dest.webinf}" |
|---|
| 16 |
file="${app.sou.dir}/war/WEB-INF/geronimo-web.xml"> |
|---|
| 17 |
<filterset refid="property.filters" /> |
|---|
| 18 |
</copy> |
|---|
| 19 |
|
|---|
| 20 |
<if> |
|---|
| 21 |
<isset property="propval.app.virtual.host" /> |
|---|
| 22 |
<then> |
|---|
| 23 |
<replace file="${app.dest.webinf}/geronimo-web.xml"> |
|---|
| 24 |
<replacetoken><![CDATA[<!-- Virtual host -->]]></replacetoken> |
|---|
| 25 |
<replacevalue><![CDATA[<host>@VIRTUAL-HOST@</host> |
|---|
| 26 |
]]> |
|---|
| 27 |
</replacevalue> |
|---|
| 28 |
</replace> |
|---|
| 29 |
<replace file="${app.dest.webinf}/geronimo-web.xml"> |
|---|
| 30 |
<replacefilter token="@VIRTUAL-HOST@" value="${propval.app.virtual.host}"/> |
|---|
| 31 |
</replace> |
|---|
| 32 |
</then> |
|---|
| 33 |
</if> |
|---|
| 34 |
</target> |
|---|
| 35 |
</project> |
|---|