| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
|
|---|
| 3 |
<!-- =================================================================== |
|---|
| 4 |
Create war ready for jboss (j2ee) deployment |
|---|
| 5 |
=================================================================== --> |
|---|
| 6 |
|
|---|
| 7 |
<project name="app.deploy" default="deploy" > |
|---|
| 8 |
<target name="init" > |
|---|
| 9 |
<dirname property="this.dir" file="${ant.file}"/> |
|---|
| 10 |
|
|---|
| 11 |
<property name="app.resources.dir" |
|---|
| 12 |
location="${this.dir}/../webapp/resources" /> |
|---|
| 13 |
</target> |
|---|
| 14 |
|
|---|
| 15 |
<!-- ================================================================= |
|---|
| 16 |
The "deploy" target first builds a configured component then copies |
|---|
| 17 |
all required files to the appropriate servlet container directories. |
|---|
| 18 |
|
|---|
| 19 |
Currently this only works for the quickstart distribution. |
|---|
| 20 |
For example, it does not handle deploying into jboss and copying |
|---|
| 21 |
resource files (images, stylesheets) to external locations. |
|---|
| 22 |
================================================================= --> |
|---|
| 23 |
|
|---|
| 24 |
<target name="deploy" depends="init,build.configured" > |
|---|
| 25 |
<echo message="***************************************************************" /> |
|---|
| 26 |
<echo message="Readying app ${propval.app.war.name}.war for jboss deployment" /> |
|---|
| 27 |
<echo message="***************************************************************" /> |
|---|
| 28 |
<if> |
|---|
| 29 |
<not> |
|---|
| 30 |
<isset property="org.bedework.global.noskins" /> |
|---|
| 31 |
</not> |
|---|
| 32 |
<then> |
|---|
| 33 |
<delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}" /> |
|---|
| 34 |
<copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}"> |
|---|
| 35 |
<fileset dir="${this.dir}/../webapp/resources" /> |
|---|
| 36 |
</copy> |
|---|
| 37 |
</then> |
|---|
| 38 |
</if> |
|---|
| 39 |
</target> |
|---|
| 40 |
|
|---|
| 41 |
<target name="build.configured" > |
|---|
| 42 |
<!-- =============================================================== |
|---|
| 43 |
Just use webapp build |
|---|
| 44 |
=============================================================== --> |
|---|
| 45 |
|
|---|
| 46 |
<ant antfile="${this.dir}/../webapp/build.xml" inheritRefs="true" target="build.configured" /> |
|---|
| 47 |
</target> |
|---|
| 48 |
</project> |
|---|