root/trunk/calendar3/bldfiles/globalDefs.xml

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

Mostly Dump/restore changes

Further schema changes - renamed calendar path column to bwpath

alter table CALENDARS alter column path rename to bwpath

Added ownerid column and index and publick to attendees

alter table ATTENDEES add column ownerid int
alter table ATTENDEES add column publick char(1)
CREATE INDEX vattendees_user ON attendees (ownerid)

Changed CalOptions? to support extra classes and fix bugs.

Moved system parameters into xml options.
Moved dump/restore runtime options into xml options.

Removed use of bedework.dumprestore.options file. Multiple files just lead to
confusion and the zipped version will eventually allow overrides as run time
parameters.

Many changes to deployment build files to build dump/restore applications as
zipped runnable packages

Disabled (for the time being at least) the targets which run the dump/restore
applications. For the moment cd into the temp directory and run it, e.g.

cd quickstart/calendar3/temp/shellscr/dumpres/
chmod +x cmd
./cmd restore ~/.bedework/caldata.xml

or unzip the zipped application that is in the dist directory.

The zipped application will handle dump, restore, initdb and has a backup option
to save the data in a file with a date tagged name.

Dump new attendee fields.

Still to do:
Check attendees restored correctly

Ensure all fields are dumped and restored
Use subscription name in view dump instead of id.

Use the event key fields instead of id for annotation target and master.

Not dumping preferred calendars in version3.0 - do so.

Need to set calType in 2.3 restore

EventAnnotations? still need work. target and master need setiing.

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      This file is imported by build files that want to define all the
5      global settings. It defines a globalDefs target
6      =================================================================== -->
7
8 <project name="uwcalGlobalDefs" default="globalDefs">
9   <property environment="env"/>
10
11   <target name="globalDefs" >
12     <!-- This may already be set from calling dir -->
13     <dirname property="calendar.dir" file="${ant.file}"/>
14
15     <!-- This needs reinvestigating - there still seem to be problems with xalan
16          If this stays it should be a config property
17
18          For a tomcat deployed version with the broken jvm (1.4.2_03) we need to
19          use a version of xalan in the common/endorsed tomcat directory.
20          Comment this out to stop the copy
21          This may get fixed. See:
22          http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=104547205330116&w=2
23          http://wiki.cocoondev.org/Wiki.jsp?page=EndorsedLibsProblem
24          http://www.mail-archive.com/users@cocoon.apache.org/msg08191.html
25          -->
26     <property name="xalan.in.tomcat.common.endorsed" value="yes" />
27
28     <!-- comment out to disable build of caldav components.-->
29     <property name="org.bedework.build.caldav" value="yes" />
30
31     <!-- Overriding this when invoking ant allows different user property
32          files to be included e.g.
33             ant -Dorg.bedework.user.build.properties=/home/me/bedework.properties ...
34             -->
35     <property name="org.bedework.user.build.properties"
36               location="${user.home}/bedework.build.properties" />
37
38     <echo message="Load user properties from ${org.bedework.user.build.properties}" />
39
40     <!-- Load user property definition overrides -->
41     <property file="${org.bedework.user.build.properties}" />
42     <property file="${calendar.dir}/build.properties"/>
43
44     <!-- Name of the configuration property file -->
45     <property name="org.bedework.clone.default" value="democal" />
46
47     <!-- ===============================================================
48               Properties derived from calendar.dir
49          =============================================================== -->
50
51     <property name="uwcal.home" location="${calendar.dir}" />
52
53     <!-- This is the default location for the canoo files.
54       -->
55     <property name="webtest.home" location="${calendar.dir}/../webtest" />
56
57     <!-- Where the web-apps skeletons, build files etc reside -->
58     <property name="apps.root.dir" location="${calendar.dir}/apps" />
59     <property name="cal.default.db" location="${calendar.dir}/db" />
60     <property name="org.bedework.default.lib" location="${calendar.dir}/lib" />
61     <property name="org.bedework.jdbc.lib" location="${org.bedework.default.lib}/jdbc" />
62     <property name="html.dir" location="${calendar.dir}/html" />
63
64     <!-- Component locations -->
65
66     <property name="org.bedework.access.base" location="${calendar.dir}/access" />
67     <property name="org.bedework.appcommon.base" location="${calendar.dir}/appcommon" />
68     <property name="org.bedework.caldav.base" location="${calendar.dir}/caldav" />
69     <property name="org.bedework.caldavClientApi.base"
70               location="${calendar.dir}/caldavClientApi" />
71     <property name="org.bedework.calenv.base" location="${calendar.dir}/calEnv" />
72     <property name="org.bedework.calfacade.base" location="${calendar.dir}/calFacade" />
73     <property name="org.bedework.calsvc.base" location="${calendar.dir}/calsvc" />
74     <property name="org.bedework.calsvci.base" location="${calendar.dir}/calsvci" />
75     <property name="org.bedework.common.base" location="${calendar.dir}/common" />
76     <property name="org.bedework.config.base" location="${calendar.dir}/config" />
77     <property name="org.bedework.core.base" location="${calendar.dir}/calCore" />
78     <property name="org.bedework.davdefs.base" location="${calendar.dir}/davdefs" />
79     <property name="org.bedework.deployment.base" location="${calendar.dir}/deployment" />
80     <property name="org.bedework.dumprestore.base" location="${calendar.dir}/dumprestore" />
81     <property name="org.bedework.http.base" location="${calendar.dir}/http" />
82     <property name="org.bedework.ical.base" location="${calendar.dir}/icalendar" />
83     <property name="org.bedework.locale.base" location="${calendar.dir}/locale" />
84     <property name="org.bedework.logging.base" location="${calendar.dir}/logging" />
85     <property name="org.bedework.mail.base" location="${calendar.dir}/mail" />
86     <property name="org.bedework.synchml.base" location="${calendar.dir}/synchml" />
87     <property name="org.bedework.testsuite.base" location="${calendar.dir}/test" />
88     <property name="org.bedework.timers.base" location="${calendar.dir}/timers" />
89     <property name="org.bedework.tools.base" location="${calendar.dir}/tools" />
90     <property name="org.bedework.webadmin.base" location="${calendar.dir}/webadmin" />
91     <property name="org.bedework.webclient.base" location="${calendar.dir}/webclient" />
92     <property name="org.bedework.webcommon.base" location="${calendar.dir}/webcommon" />
93     <property name="org.bedework.webtest.base" location="${calendar.dir}/webtest" />
94
95     <!-- ===============================================================
96               Properties derived from org.bedework.appserver.dir
97          =============================================================== -->
98
99     <property name="org.bedework.appserver.deploy.dir"
100               location="${org.bedework.appserver.dir}/webapps" />
101
102     <!-- ======================= Directory Names =======================
103         These properties generally define file and directory names (or
104         paths) that affect where the build process stores its outputs.
105
106         org.bedework.temp.home  The directory into which the
107                              "compile" target will generate some of their
108                              output. Defaults to "temp".
109
110         dist.home            The name of the base directory in which
111                              distribution files are created.
112                              Defaults to "dist".
113          =============================================================== -->
114
115     <property name="org.bedework.bld.home" location="${calendar.dir}/bldfiles"/>
116     <property name="dist.home" location="${calendar.dir}/dist"/>
117
118     <!-- ===============================================================
119               Properties derived from org.bedework.temp.home
120          =============================================================== -->
121
122     <property name="org.bedework.temp.home" location="${calendar.dir}/temp"/>
123
124     <!-- As application components are built, they copy any needed jars into
125          this directory -->
126     <property name="org.bedework.temp.jars" location="${org.bedework.temp.home}/jars"/>
127
128     <!-- As we build jars temporary files end up under here -->
129     <property name="org.bedework.temp.jartemp.dir"
130               location="${org.bedework.temp.home}/jartemp" />
131
132     <!-- Define an empty dir and fileset -->
133     <property name="org.bedework.empty.dir"
134               location="${org.bedework.temp.home}/empty-dir" />
135     <mkdir dir="${org.bedework.empty.dir}" />
136     <fileset id="empty.fileset" dir="${org.bedework.empty.dir}"
137              excludes="*" />
138
139     <!-- unconfigured applications get built in this directory -->
140     <property name="org.bedework.temp.preconfig.home"
141               location="${org.bedework.temp.home}/preconfig"/>
142
143     <!-- wars get built in this directory -->
144     <property name="org.bedework.temp.wars.home"
145               location="${org.bedework.temp.home}/wars"/>
146
147     <!-- ears get built in this directory -->
148     <property name="org.bedework.temp.ears.home"
149               location="${org.bedework.temp.home}/ears"/>
150
151     <!-- Shell scripts get built in this directory -->
152     <property name="org.bedework.temp.shellscr.home"
153               location="${org.bedework.temp.home}/shellscr"/>
154
155     <!-- ............... test results .................................. -->
156     <property name="org.bedework.temp.test.dir"
157               location="${org.bedework.temp.home}/test"/>
158
159     <property name="org.bedework.test.logs"
160               location="${org.bedework.temp.test.dir}/logs"/>
161
162     <!-- ===============================================================
163               Properties derived from org.bedework.bld.home
164          =============================================================== -->
165
166     <!-- define location of generic build files -->
167     <property name="buildjar" location="${org.bedework.bld.home}/buildjar.xml" />
168     <property name="buildwar" location="${org.bedework.bld.home}/buildwar.xml" />
169     <property name="buildear" location="${org.bedework.bld.home}/buildear.xml" />
170     <property name="org.bedework.buildsh"
171               location="${org.bedework.bld.home}/buildsh.xml" />
172     <property name="buildcoreprops" location="${org.bedework.bld.home}/bldcoreprops.xml" />
173
174     <property name="application.xml"
175               location="${org.bedework.bld.home}/application.xml" />
176
177     <!-- define location of default property files -->
178     <property name="org.bedework.defjars"
179               location="${org.bedework.bld.home}/defjars.properties" />
180
181     <!-- default to empty -->
182     <fileset id="base.resource.files" refid="empty.fileset" />
183
184     <property file="${org.bedework.defjars}"/>
185
186     <!-- Define where test suite finds resources -->
187     <property name="uwcal.test.env.properties.root"
188               location="${org.bedework.testsuite.base}/resources" />
189
190     <!-- Enable/disable replacement of log4j config during deployment
191          Set this to yes in your home bedework.build.properties file if you
192          want the log4j file overwritten if it already exists.
193       -->
194     <property name="org.bedework.deploy.log4j.config" value="no" />
195   </target>
196 </project>
197
Note: See TracBrowser for help on using the browser.