root/trunk/calendar3/tools/build.xml

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

Moved many global preferences into the database as a BwSystem? object.
Added default tzid - data restore now sets times to that default

Commented out some global prefs.

Line 
1 <?xml version="1.0"?>
2
3 <!-- ====================== Calendar tools classes ======================
4      This is the ant build file for tools for the UW Calendar.
5
6      This file will probably need no modification as it is assumed that the
7      core of the calendar will be largely site and application independent.
8
9      This build file depends upon properties set by the master build file one
10      level up in the directory tree.
11
12      Authors: Mike Douglass   douglm@rpi.edu
13      =================================================================== -->
14
15 <project name="uwcal.tools" default="build">
16   <property name="base.name" value="tools"/>
17
18   <target name="init" >
19     <dirname property="org.bedework.tools.base" file="${ant.file}"/>
20     <property name="source.home" location="${org.bedework.tools.base}/src"/>
21   </target>
22
23   <!-- =================================================================
24        The "build" target does a build of all tools classes
25        ================================================================= -->
26
27   <target name="build"
28           depends="init"
29           description="Build calendar tools jars">
30     <!-- ==================== Sources and classes ====================== -->
31
32     <fileset id="base.java.sources" dir="${source.home}" >
33       <include name="org/bedework/tools/**/*.java"/>
34     </fileset>
35
36     <patternset id="base.class.patternset">
37       <include name="org/bedework/tools/**/*.class"/>
38     </patternset>
39
40     <!-- ==================== Compilation Classpath ==================== -->
41
42     <path id="compile.classpath">
43       <pathelement location="${log4j.jar}"/>
44       <pathelement location="${ical4j.jar}"/>
45       <pathelement location="${digester.jar}"/>
46       <pathelement location="${hibernate.jar}"/>
47       <pathelement location="${org.bedework.calfacadeshared.jar}"/>
48       <pathelement location="${org.bedework.calsvci.jar}"/>
49       <pathelement location="${org.bedework.calcore.jar}"/>
50       <pathelement location="${org.bedework.access.jar}"/>
51       <pathelement location="${org.bedework.appcommon.jar}"/>
52     </path>
53
54     <!-- ==================== Build Target ============================= -->
55
56     <property name="build.jar.file" location="${org.bedework.tools.jar}" />
57
58     <ant antfile="${buildjar}" inheritRefs="true" target="build" />
59   </target>
60
61   <!-- ========================== run targets ==========================
62        ================================================================= -->
63
64   <target name="dumpdb"
65           depends="build"
66           description="Run calendar db dump app">
67       <ant antfile="${org.bedework.tools.base}/dumprestore/build.xml" inheritrefs="true"
68            target="dumpdb" >
69         <property name="dump.class" value="org.bedework.tools.dumprestore.dump.Dump" />
70       </ant>
71   </target>
72
73   <target name="restoredb"
74           depends="build"
75           description="Run calendar db restore app">
76       <ant antfile="${org.bedework.tools.base}/dumprestore/build.xml" inheritrefs="true"
77            target="restoredb" >
78         <property name="restore.class" value="org.bedework.tools.dumprestore.restore.Restore" />
79       </ant>
80   </target>
81
82   <target name="initdb"
83           depends="build"
84           description="Run calendar db restore app to init db">
85       <ant antfile="${org.bedework.tools.base}/dumprestore/build.xml" inheritrefs="true"
86            target="initdb" >
87         <property name="restore.class" value="org.bedework.tools.dumprestore.restore.Restore" />
88       </ant>
89   </target>
90
91   <target name="tzconvert"
92           depends="build"
93           description="Run timezone ics file conversion app">
94       <ant antfile="${org.bedework.tools.base}/timezones/build.xml" inheritrefs="true"
95            target="tzconvert" />
96   </target>
97 </project>
Note: See TracBrowser for help on using the browser.