root/releases/bedework-3.5/build/buildsh.xml

Revision 2141 (checked in by douglm, 4 years ago)

Noticed tha event annotations were getting updated even when no actual updates were taking place. Determined it was hibernate bug

http://opensource.atlassian.com/projects/hibernate/browse/HHH-2606

Upgraded to hibernate 3.3.1 - not a bad thing anyway.

Discovered the hadn't fixed the bug even though it's about 2years old now.

Modified annotation class to use String fro the emptyFlags property instead of the more appropriate char[].

XMl schema changed but not the db schema.

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      This file builds a runnable application wrapped up as a zip file.
5      Unpacking the zip should result in a directory containing a shell
6      script, a set of jars and any other resources needed.
7
8      Properties we need:
9        app.core.env.pname     core properties source
10        app.run.shellscr       location of the skeleton shell script.
11        app.run.jar.file       application jar file
12        app.run.main.class     main class for application.
13
14      Authors: Mike Douglass   douglm rpi.edu
15      =================================================================== -->
16
17 <project name="bw.buildsh" default="build">
18   <import file="${build.dir}/buildfilters.xml" />
19
20   <target name="init">
21     <!-- Destinations - where we build stuff -->
22     <property name="app.dest.home"
23               location="${org.bedework.temp.shellscr.home}/${propval.app.zip.name}" />
24     <property name="app.dest.lib"
25               location="${app.dest.home}/lib" />
26     <property name="app.dest.classes"
27               location="${app.dest.home}/classes" />
28     <property name="app.dest.properties"
29               location="${app.dest.classes}/properties/calendar" />
30     <property name="app.dest.resources"
31               location="${app.dest.home}/resources" />
32     <property name="app.dest.data"
33               location="${app.dest.home}/data" />
34
35     <property name="app.zip.file"
36               location="${dist.home}/${propval.app.zip.name}.zip" />
37   </target>
38
39   <!-- ================================================================
40        build target
41        ================================================================ -->
42
43   <target name="build" depends="init">
44     <delete dir="${app.dest.home}" />
45
46     <!-- Library stuff -->
47
48     <mkdir dir="${app.dest.lib}" />
49
50     <!-- hibernate jars -->
51     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.antlr}" />
52     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.asm-attrs}" />
53     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.asm}" />
54     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.cglib}" />
55     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.dom4j}" />
56     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.ehcache}" />
57     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.hibernate}" />
58     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.javassist}" />
59     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jgroups}" />
60     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jta}" />
61     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-collections}"/>
62     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.slf4j-api}" />
63     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.slf4j-log4j12}" />
64
65     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-logging}"/>
66
67     <!-- core files -->
68
69     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.rpiaccess}" />
70     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.rpiutil}" />
71     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-davio}" />
72
73     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-annotations}" />
74     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-apiutil}" />
75     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calcore}" />
76     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calcorei}" />
77     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calfacade}" />
78     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calsvc}" />
79     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calsvci}" />
80     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-icalendar}" />
81     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-logging}" />
82     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-mail}" />
83     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-sysevents}" />
84
85     <!-- any extra files-->
86    <copy todir="${app.dest.lib}" >
87      <fileset dir="${org.bedework.temp.extrajars.dir}" />
88    </copy>
89
90     <!-- Some more standard libs -->
91     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.log4j}"/>
92     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.lucene-core}"/>
93     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.lucene-misc}"/>
94     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.ical4j}"/>
95     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-codec}"/>
96     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-digester}"/>
97     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-httpclient}"/>
98     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-lang}"/>
99     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-ssl}"/>
100
101     <!-- jdbc stuff -->
102
103     <if>
104       <available file="${org.bedework.global.ext.lib}/jdbc" type="dir" />
105       <then>
106         <!-- jdbc drivers -->
107         <copy todir="${app.dest.lib}" flatten="yes" >
108           <!-- local jdbc drivers -->
109           <fileset dir="${org.bedework.global.ext.lib}/jdbc">
110             <include name="*.jar"/>
111           </fileset>
112         </copy>
113       </then>
114       <else>
115         <!-- Include the quickstart jdbc driver -->
116         <copy todir="${app.dest.lib}" file="${org.bedework.appjar.hsqldb}"/>
117       </else>
118     </if>
119
120     <copy todir="${app.dest.classes}">
121       <fileset dir="${org.bedework.project.calendarapi}/calCore/resources/properties" />
122       <filterset refid="property.filters" />
123     </copy>
124
125     <copy todir="${app.dest.classes}">
126       <fileset dir="${org.bedework.project.calendarapi}/calCore/resources/hbms" />
127       <filterset refid="property.filters" />
128     </copy>
129
130     <copy todir="${app.dest.classes}" overwrite="yes" >
131       <fileset refid="org.bedework.extra.resources" />
132       <filterset refid="property.filters" />
133     </copy>
134
135     <!-- Create the env.properties file -->
136     <mkdir dir="${app.dest.properties}" />
137
138     <copy tofile="${app.dest.properties}/options.xml"
139           file="${org.bedework.config.options}" />
140
141     <!-- ===============================================================
142                        Add any resource files
143          =============================================================== -->
144
145     <copy tofile="${app.dest.resources}/log4j.xml"
146           file="${org.bedework.runsh.log4j.xml}"
147           failonerror="false" />
148
149     <!-- ===============================================================
150                        Add any data files
151          =============================================================== -->
152
153     <mkdir dir="${app.dest.data}" />
154
155     <copy todir="${app.dest.data}" overwrite="yes" >
156       <fileset refid="org.bedework.shellscr.data" />
157       <filterset refid="property.filters" />
158     </copy>
159
160     <!-- ===============================================================
161                        Build the classpath
162          =============================================================== -->
163
164     <path id="app.run.path">
165       <fileset dir="${app.dest.lib}">
166         <include name="*.jar"/>
167       </fileset>
168       <pathelement location="${app.dest.resources}" />
169     </path>
170     <pathconvert property="app.run.cp" refid="app.run.path"
171                  targetos="unix" >
172       <map from="${app.dest.lib}" to="./lib"/>
173       <map from="${app.dest.resources}" to="./resources"/>
174     </pathconvert>
175     <pathconvert property="app.run.wincp" refid="app.run.path"
176                  targetos="windows" >
177       <map from="${app.dest.lib}" to="./lib"/>
178       <map from="${app.dest.resources}" to="./resources"/>
179     </pathconvert>
180
181     <!-- ===============================================================
182                        Copy and modify the shell script
183          =============================================================== -->
184
185     <copy tofile="${app.dest.home}/${propval.app.shellscr.name}"
186           file="${app.run.shellscr}" >
187       <filterset>
188         <filter token="CP"
189                 value=".:./classes:${app.run.cp}"/>
190       </filterset>
191       <filterset refid="property.filters" />
192     </copy>
193
194     <copy tofile="${app.dest.home}/${propval.app.batscr.name}"
195           file="${app.run.batscr}" >
196       <filterset>
197         <filter token="CP"
198                 value=".;./classes;${app.run.wincp}"/>
199       </filterset>
200       <filterset refid="property.filters" />
201     </copy>
202
203     <!-- build the zip file -->
204     <mkdir dir="${dist.home}" />
205     <delete file="${app.zip.file}" />
206
207     <zip destfile="${app.zip.file}" >
208       <zipfileset prefix="${propval.app.zip.name}" dir="${app.dest.home}" />
209     </zip>
210   </target>
211 </project>
212
Note: See TracBrowser for help on using the browser.