root/trunk/calendar3/config/build.xml

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

Initial import of bedework

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.common.jar}"/>
93       <pathelement location="${org.bedework.calenv.jar}"/>
94       <pathelement location="${org.bedework.webcommon.jar}"/>
95     </path>
96
97     <!-- ==================== Build Target ============================= -->
98
99     <property name="build.jar.file" location="${org.bedework.config.jar}" />
100
101     <ant antfile="${buildjar}" inheritRefs="true" target="build" />
102   </target>
103
104   <!-- Build target builds the runnable configuration tool (not fully developed). -->
105   <target name="build.runnable" depends="init"
106           description="Build UW calendar config shell script">
107     <!-- ==================== Sources and classes ====================== -->
108
109     <fileset id="base.java.sources" dir="${source.home}" >
110       <!--
111       <include name="edu/rpi/cct/uwcal/config/**/*.java"/>
112       -->
113       <include name="org/bedework/webconfig/**/*.java"/>
114     </fileset>
115
116     <patternset id="base.class.patternset">
117       <!--
118       <include name="edu/rpi/cct/uwcal/config/**/*.class"/>-->
119       <include name="org/bedework/webconfig/**/*.class"/>
120     </patternset>
121     <!-- ==================== Compilation Classpath ==================== -->
122
123     <path id="compile.classpath">
124       <pathelement location="${servlet.jar}"/>
125       <pathelement location="${struts.jar}"/>
126       <pathelement location="${log4j.jar}"/>
127
128       <pathelement location="${org.bedework.common.jar}"/>
129     </path>
130
131     <!-- ================= Extra runtime library jars ================== -->
132
133     <fileset id="org.bedework.run.jars" dir="${org.bedework.empty.dir}" >
134     </fileset>
135
136     <fileset id="org.bedework.run.lib.jars" dir="${org.bedework.empty.dir}" >
137     </fileset>
138
139     <!-- ==================== Build Target ============================= -->
140
141     <property name="build.jar.file" location="${org.bedework.config.jar}" />
142
143     <ant antfile="${buildjar}" inheritRefs="true" target="build" />
144
145     <!-- ===============================================================
146          Build a runnable component and zip it up
147          =============================================================== -->
148
149     <property name="app.run.shellscr"
150               location="${org.bedework.config.base}/config.sh" />
151     <property name="app.run.jar.file" value="${build.jar.file}" />
152     <property name="app.run.main.class"
153               value="edu.rpi.cct.uwcal.config.optionsApp.OptionsApp" />
154
155     <property name="org.bedework.runsh.log4j.xml"
156               location="${org.bedework.config.base}/resources/log4j.xml" />
157
158     <ant antfile="${buildsh}"
159          inheritRefs="true" target="build" />
160   </target>
161
162   <target name="do.deploy" depends="deploy.init"
163           description="Deply Calendar using config shell script">
164     <antcall inheritrefs="true" target="deploy.public.caldav" />
165   </target>
166
167   <!-- ====================== Deploy public caldav ===================== -->
168 </project>
169
Note: See TracBrowser for help on using the browser.