| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
|
|---|
| 3 |
<!-- =================================================================== |
|---|
| 4 |
jetspeed portlet deployer |
|---|
| 5 |
=================================================================== --> |
|---|
| 6 |
|
|---|
| 7 |
<project name="bwpersonal.jetspeed.deploy" default="deploy" > |
|---|
| 8 |
<target name="init"> |
|---|
| 9 |
<!-- and define some properties based on those --> |
|---|
| 10 |
<property name="app.war.file" |
|---|
| 11 |
location="${dist.home}/${propval.app.war.name}.war" /> |
|---|
| 12 |
|
|---|
| 13 |
<!-- Properties that differ from the personal client --> |
|---|
| 14 |
<!-- |
|---|
| 15 |
<property name="app.web.xml" |
|---|
| 16 |
value="${app.sou.dir}/war/WEB-INF/web.xml" /> |
|---|
| 17 |
--> |
|---|
| 18 |
|
|---|
| 19 |
<property name="propval.app.guestmode" value="false" /> |
|---|
| 20 |
|
|---|
| 21 |
<dirname property="portlet.build.dir" file="${ant.file}"/> |
|---|
| 22 |
|
|---|
| 23 |
<!-- Use generic portlet resources --> |
|---|
| 24 |
<property name="portlet.resources.dir" |
|---|
| 25 |
location="${portlet.build.dir}/../portlet/resources" /> |
|---|
| 26 |
|
|---|
| 27 |
<property name="portlet.skins.dir" |
|---|
| 28 |
location="${portlet.resources.dir}/demoskins" /> |
|---|
| 29 |
</target> |
|---|
| 30 |
|
|---|
| 31 |
<!-- ================================================================= |
|---|
| 32 |
The "deploy" target first builds a configured component then copies |
|---|
| 33 |
all required files to the appropriate servlet container directories. |
|---|
| 34 |
|
|---|
| 35 |
Currently this only works for the quickstart distribution. |
|---|
| 36 |
For example, it does not handle deploying into jboss and copying |
|---|
| 37 |
resource files (images, stylesheets) to external locations. |
|---|
| 38 |
================================================================= --> |
|---|
| 39 |
|
|---|
| 40 |
<target name="deploy" depends="init,build.configured" > |
|---|
| 41 |
<!-- Copy the resources into the server --> |
|---|
| 42 |
|
|---|
| 43 |
<echo message="Copy from ${portlet.skins.dir}" /> |
|---|
| 44 |
<property name="dest.skins.dir" |
|---|
| 45 |
location="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${org.bedework.global.portal.platform}" /> |
|---|
| 46 |
<echo message=" to ${dest.skins.dir}" /> |
|---|
| 47 |
<delete dir="${dest.skins.dir}" /> |
|---|
| 48 |
<copy todir="${dest.skins.dir}"> |
|---|
| 49 |
<fileset dir="${portlet.skins.dir}" /> |
|---|
| 50 |
</copy> |
|---|
| 51 |
</target> |
|---|
| 52 |
|
|---|
| 53 |
<target name="build.configured" depends="init" > |
|---|
| 54 |
</target> |
|---|
| 55 |
</project> |
|---|
| 56 |
|
|---|