root/trunk/deployment/resources/build.xml

Revision 1164 (checked in by douglm, 6 years ago)

Add dojo to deployment process

  • Property svn:eol-style set to LF
Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      Default public events web application deployer
5      =================================================================== -->
6
7 <project name="bwcommonresources.deploy" default="deploy" >
8
9   <target name="init" >
10     <dirname property="common.resources.dir" file="${ant.file}"/>
11
12     <property name="common.resources.dest.dir"
13               location="${org.bedework.deploy.app.sou}" />
14
15     <property name="org.bedework.use.dojo" value="true" />
16
17     <!-- Flag as struts -->
18     <property name="org.bedework.strutsapp" value="true" />
19
20     <!--
21     <property name="app.web.xml"
22               value="${app.sou.dir}/war/WEB-INF/web.xml" />
23               -->
24
25     <!-- This should be in the config stuff -->
26     <property name="propval.directory.browsing.disallowed"
27               value="${app.directory.browsing.disallowed}" />
28
29     <property name="propval.app.guestmode" value="true" />
30
31     <property name="app.resources.dir"
32               location="${this.dir}/resources" />
33   </target>
34
35   <!-- =================================================================
36        The "deploy" target first builds a configured component then copies
37        all required files to the appropriate servlet container directories.
38
39        Currently this only works for the quickstart distribution.
40        For example, it does not handle deploying into jboss and copying
41        resource files (images, stylesheets) to external locations.
42        ================================================================= -->
43
44   <target name="deploy" depends="init" >
45     <if>
46       <isset property="org.bedework.use.dojo" />
47       <then>
48         <!-- Add dojo -->
49         <copy todir="${common.resources.dest.dir}/javascript/dojo">
50           <fileset dir="${common.resources.dir}/javascript/${dojo.dir}" />
51         </copy>
52       </then>
53     </if>
54   </target>
55 </project>
56
Note: See TracBrowser for help on using the browser.