root/trunk/bedework/config/build.xml

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

deploy of bedework now runs to completion

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================== Calendar config module =====================
4      This is the build.xml for the bedework calendar config and deploy module..
5
6      Authors: Mike Douglass   douglm@rpi.edu
7      =================================================================== -->
8
9 <project name="cal.config" default="init" >
10   <property name="base.name" value="config"/>
11
12   <!--
13   <import file="${org.bedework.config.base}/build.pubcaldav.xml"/>
14   -->
15
16   <target name="init">
17     <dirname property="this.dir" file="${ant.file}"/>
18     <property name="source.home" location="${this.dir}/src"/>
19
20     <!-- set this for the app builds -->
21     <dirname property="app.root.dir" file="${ant.file}"/>
22   </target>
23
24   <target name="deploy.init">
25     <condition property="org.bedework.deploy.admin.web">
26       <equals arg1="true" arg2="${org.bedework.install.admin.web}"/>
27     </condition>
28
29     <condition property="org.bedework.deploy.public.web">
30       <equals arg1="true" arg2="${org.bedework.install.public.web}"/>
31     </condition>
32
33     <condition property="org.bedework.deploy.personal.web">
34       <equals arg1="true" arg2="${org.bedework.install.personal.web}"/>
35     </condition>
36
37     <condition property="org.bedework.deploy.public.caldav">
38       <equals arg1="true" arg2="${org.bedework.install.public.caldav}"/>
39     </condition>
40
41     <condition property="org.bedework.deploy.personal.caldav">
42       <equals arg1="true" arg2="${org.bedework.install.personal.caldav}"/>
43     </condition>
44
45     <!-- We build a  properties file to define properties common to all
46          components in a suite. -->
47     <property name="org.bedework.deploy.temp.env.properties"
48               location="${org.bedework.temp.home}/config/env.properties" />
49     <delete file="${org.bedework.deploy.temp.env.properties}" />
50
51     <echo file="${org.bedework.deploy.temp.env.properties}">
52 org.bedework.env.systemid=${org.bedework.env.systemid}
53
54 org.bedework.envclass=${org.bedework.envclass}
55
56 org.bedework.userauthclass=${org.bedework.userauthclass}
57
58 org.bedework.mailerclass=${org.bedework.mailerclass}
59
60 org.bedework.calintfclass=${org.bedework.calintfclass}
61
62 org.bedework.update.check.interval=${org.bedework.update.check.interval}
63
64 # These are only set for standalone apps using jdbc
65 org.bedework.jdbcclassname=${org.bedework.jdbcclassname}
66 org.bedework.jdbcurl=${org.bedework.jdbcurl}
67 org.bedework.jdbcid=${org.bedework.jdbcid}
68 org.bedework.jdbcpw=${org.bedework.jdbcpw}
69
70     </echo>
71   </target>
72
73   <!-- Build target builds the web configuration tool. -->
74   <target name="build" depends="init"
75           description="Build bedework web config jar">
76     <!-- ==================== Sources and classes ====================== -->
77
78     <fileset id="base.java.sources" dir="${source.home}" >
79       <include name="org/bedework/webconfig/**/*.java"/>
80     </fileset>
81
82     <patternset id="base.class.patternset">
83       <include name="org/bedework/webconfig/**/*.class"/>
84     </patternset>
85     <!-- ==================== Compilation Classpath ==================== -->
86
87     <path id="compile.classpath">
88       <pathelement location="${servlet.jar}"/>
89       <pathelement location="${struts.jar}"/>
90       <pathelement location="${log4j.jar}"/>
91
92       <pathelement location="${org.bedework.rpiutil.jar}"/>
93
94       <pathelement location="${org.bedework.calfacadeshared.jar}"/>
95       <pathelement location="${org.bedework.webcommon.jar}"/>
96     </path>
97
98     <!-- ==================== Build Target ============================= -->
99
100     <property name="build.jar.file" location="${org.bedework.config.jar}" />
101
102     <ant antfile="${buildjar}" inheritRefs="true" target="build" />
103   </target>
104
105   <!-- Build target builds the runnable configuration tool (not fully developed). -->
106   <target name="build.runnable" depends="init"
107           description="Build UW calendar config shell script">
108     <!-- ==================== Sources and classes ====================== -->
109
110     <fileset id="base.java.sources" dir="${source.home}" >
111       <!--
112       <include name="edu/rpi/cct/uwcal/config/**/*.java"/>
113       -->
114       <include name="org/bedework/webconfig/**/*.java"/>
115     </fileset>
116
117     <patternset id="base.class.patternset">
118       <!--
119       <include name="edu/rpi/cct/uwcal/config/**/*.class"/>-->
120       <include name="org/bedework/webconfig/**/*.class"/>
121     </patternset>
122     <!-- ==================== Compilation Classpath ==================== -->
123
124     <path id="compile.classpath">
125       <pathelement location="${servlet.jar}"/>
126       <pathelement location="${struts.jar}"/>
127       <pathelement location="${log4j.jar}"/>
128
129       <pathelement location="${org.bedework.common.jar}"/>
130     </path>
131
132     <!-- ================= Extra runtime library jars ================== -->
133
134     <fileset id="org.bedework.run.jars" dir="${org.bedework.empty.dir}" >
135     </fileset>
136
137     <fileset id="org.bedework.run.lib.jars" dir="${org.bedework.empty.dir}" >
138     </fileset>
139
140     <!-- ==================== Build Target ============================= -->
141
142     <property name="build.jar.file" location="${org.bedework.config.jar}" />
143
144     <ant antfile="${buildjar}" inheritRefs="true" target="build" />
145
146     <!-- ===============================================================
147          Build a runnable component and zip it up
148          =============================================================== -->
149
150     <property name="app.run.shellscr"
151               location="${org.bedework.config.base}/config.sh" />
152     <property name="app.run.jar.file" value="${build.jar.file}" />
153     <property name="app.run.main.class"
154               value="edu.rpi.cct.uwcal.config.optionsApp.OptionsApp" />
155
156     <property name="org.bedework.runsh.log4j.xml"
157               location="${org.bedework.config.base}/resources/log4j.xml" />
158
159     <ant antfile="${buildsh}"
160          inheritRefs="true" target="build" />
161   </target>
162
163   <target name="do.deploy" depends="deploy.init"
164           description="Deply Calendar using config shell script">
165     <antcall inheritrefs="true" target="deploy.public.caldav" />
166   </target>
167
168   <!-- ====================== Deploy public caldav ===================== -->
169 </project>
170
Note: See TracBrowser for help on using the browser.