root/trunk/calendar3/deployment/webadmin/jboss/build.xml

Revision 268 (checked in by douglm, 7 years ago)

Preliminary changes to improve building for different platforms and configurations.

Make standalone deploy property global - i.e. it's all standalone or no standalone
Make portal platform property global
Add global j2ee platform property - if set we build a ear file.

Moved caldav deployment stuff to webapp directory instead of servlet

Line 
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   <import file="../copyprops.xml" />
9
10   <target name="init" depends="copyprops">
11     <dirname property="this.dir" file="${ant.file}"/>
12
13     <property name="app.resources.dir"
14               location="${this.dir}/../webapp/resources" />
15   </target>
16
17   <!-- =================================================================
18        The "deploy" target first builds a configured component then copies
19        all required files to the appropriate servlet container directories.
20
21        Currently this only works for the quickstart distribution.
22        For example, it does not handle deploying into jboss and copying
23        resource files (images, stylesheets) to external locations.
24        ================================================================= -->
25
26   <target name="deploy" depends="init,build.configured" >
27     <delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}" />
28     <copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}">
29       <fileset dir="${app.resources.dir}" />
30     </copy>
31
32     <echo message="***************************************************************" />
33     <echo message="Readying app ${propval.war.name}.war for jboss deployment" />
34     <echo message="***************************************************************" />
35   </target>
36
37   <target name="build.configured" >
38     <!-- ===============================================================
39          Just use webapp build
40          =============================================================== -->
41
42     <ant antfile="${this.dir}/../webapp/build.xml" inheritRefs="true" target="build.configured" />
43   </target>
44 </project>
Note: See TracBrowser for help on using the browser.