| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
|
|---|
| 3 |
<!-- This is the ant build file for the bedework uber project. |
|---|
| 4 |
|
|---|
| 5 |
Authors: Mike Douglass douglm @ rpi.edu |
|---|
| 6 |
--> |
|---|
| 7 |
|
|---|
| 8 |
<project name="bedework.build" default="usage" basedir="."> |
|---|
| 9 |
<property environment="env"/> |
|---|
| 10 |
|
|---|
| 11 |
<!-- this project --> |
|---|
| 12 |
<property name="org.bedework.project.bedework" |
|---|
| 13 |
location="${basedir}" /> |
|---|
| 14 |
|
|---|
| 15 |
<!-- Where we put other projects --> |
|---|
| 16 |
<property name="org.bedework.projects" |
|---|
| 17 |
location="${org.bedework.project.bedework}/projects" /> |
|---|
| 18 |
|
|---|
| 19 |
<property name="org.bedework.project.access" |
|---|
| 20 |
location="${org.bedework.projects}/access" /> |
|---|
| 21 |
|
|---|
| 22 |
<property name="org.bedework.project.bwtools" |
|---|
| 23 |
location="${org.bedework.projects}/bwtools" /> |
|---|
| 24 |
|
|---|
| 25 |
<property name="org.bedework.project.caldav" |
|---|
| 26 |
location="${org.bedework.projects}/caldav" /> |
|---|
| 27 |
|
|---|
| 28 |
<property name="org.bedework.project.caldavTest" |
|---|
| 29 |
location="${org.bedework.projects}/caldavTest" /> |
|---|
| 30 |
|
|---|
| 31 |
<property name="org.bedework.project.calendarapi" |
|---|
| 32 |
location="${org.bedework.projects}/calendarapi" /> |
|---|
| 33 |
|
|---|
| 34 |
<property name="org.bedework.project.davutil" |
|---|
| 35 |
location="${org.bedework.projects}/davutil" /> |
|---|
| 36 |
|
|---|
| 37 |
<property name="org.bedework.project.dumprestore" |
|---|
| 38 |
location="${org.bedework.projects}/dumprestore" /> |
|---|
| 39 |
|
|---|
| 40 |
<property name="org.bedework.project.freebusy" |
|---|
| 41 |
location="${org.bedework.projects}/freebusy" /> |
|---|
| 42 |
|
|---|
| 43 |
<property name="org.bedework.project.rpiutil" |
|---|
| 44 |
location="${org.bedework.projects}/rpiutil" /> |
|---|
| 45 |
|
|---|
| 46 |
<property name="org.bedework.project.synchml" |
|---|
| 47 |
location="${org.bedework.projects}/synchml" /> |
|---|
| 48 |
|
|---|
| 49 |
<property name="org.bedework.project.webapps" |
|---|
| 50 |
location="${org.bedework.projects}/webapps" /> |
|---|
| 51 |
|
|---|
| 52 |
<property name="org.bedework.project.webdav" |
|---|
| 53 |
location="${org.bedework.projects}/webdav" /> |
|---|
| 54 |
|
|---|
| 55 |
<target name="README" depends="init" |
|---|
| 56 |
description="Describe targets and their usage"> |
|---|
| 57 |
<loadfile property="org.bedework.README" |
|---|
| 58 |
srcFile="${org.bedework.project.bedework}/docs/README"/> |
|---|
| 59 |
<echo message="${org.bedework.README}" /> |
|---|
| 60 |
</target> |
|---|
| 61 |
|
|---|
| 62 |
<target name="usage" depends="init" |
|---|
| 63 |
description="Describe targets and their usage"> |
|---|
| 64 |
<echo message="As distributed the package should be ready to go."/> |
|---|
| 65 |
<echo message="Ensure ant is on your path, (a version is in the" /> |
|---|
| 66 |
<echo message="package)"/> |
|---|
| 67 |
<echo message=""/> |
|---|
| 68 |
<echo message="First in one window do"/> |
|---|
| 69 |
<echo message=" ant hsqldb"/> |
|---|
| 70 |
<echo message="This will start the hsqldb server ready for the "/> |
|---|
| 71 |
<echo message="application."/> |
|---|
| 72 |
<echo message=""/> |
|---|
| 73 |
<echo message="In another window do"/> |
|---|
| 74 |
<echo message=" ant tomcatstart"/> |
|---|
| 75 |
<echo message=""/> |
|---|
| 76 |
<echo message="Once tomcat is running you should be able to go to a"/> |
|---|
| 77 |
<echo message="browser and connect to"/> |
|---|
| 78 |
<echo message=" http://localhost:8080/bedework"/> |
|---|
| 79 |
<echo message="and follow the instructions."/> |
|---|
| 80 |
<echo message=""/> |
|---|
| 81 |
<echo message="To build the calendar do"/> |
|---|
| 82 |
<echo message=" ant deploy or "/> |
|---|
| 83 |
<echo message=" ant deploy.debug "/> |
|---|
| 84 |
<echo message="which does a build and deploy of all components"/> |
|---|
| 85 |
<echo message=""/> |
|---|
| 86 |
<echo message="To rebuild the calendar do"/> |
|---|
| 87 |
<echo message=" ant clean.deploy or "/> |
|---|
| 88 |
<echo message=" ant clean.deploy.debug "/> |
|---|
| 89 |
<echo message="which does a clean, build and deploy of all components"/> |
|---|
| 90 |
<echo message=""/> |
|---|
| 91 |
<echo message="See documentation in the docs directory or on bedework.org"/> |
|---|
| 92 |
<echo message="for instructions on creating a locally configured calendar application"/> |
|---|
| 93 |
<echo message=""/> |
|---|
| 94 |
</target> |
|---|
| 95 |
|
|---|
| 96 |
<target name="init" > |
|---|
| 97 |
<property name="org.bedework.qs.build.synchml" value="yes" /> |
|---|
| 98 |
|
|---|
| 99 |
<!-- Overriding this when invoking ant allows different user property |
|---|
| 100 |
files to be included e.g. |
|---|
| 101 |
ant -Dorg.bedework.user.build.properties=/home/me/bedework.properties ... |
|---|
| 102 |
--> |
|---|
| 103 |
<property name="org.bedework.user.build.properties" |
|---|
| 104 |
location="${user.home}/bedework.build.properties" /> |
|---|
| 105 |
|
|---|
| 106 |
<echo message="Load user properties from ${org.bedework.user.build.properties}" /> |
|---|
| 107 |
|
|---|
| 108 |
<!-- Load user property definition overrides --> |
|---|
| 109 |
<property file="${org.bedework.user.build.properties}" /> |
|---|
| 110 |
|
|---|
| 111 |
<!-- =============================================================== |
|---|
| 112 |
Default properties. |
|---|
| 113 |
=============================================================== --> |
|---|
| 114 |
|
|---|
| 115 |
<property name="project.home" location="${org.bedework.project.bedework}"/> |
|---|
| 116 |
|
|---|
| 117 |
<property file="${project.home}/build.properties" /> |
|---|
| 118 |
|
|---|
| 119 |
<property name="project.name" value="${org.bedework.package.name}"/> |
|---|
| 120 |
<property name="project.version" value="${org.bedework.version}"/> |
|---|
| 121 |
|
|---|
| 122 |
<property name="dist.home" location="${project.home}/dist"/> |
|---|
| 123 |
<property name="lib.dir" location="${project.home}/lib"/> |
|---|
| 124 |
<property name="bin.home" location="${project.home}/bin"/> |
|---|
| 125 |
|
|---|
| 126 |
<property name="build.dir" location="${project.home}/build"/> |
|---|
| 127 |
<property name="buildjar" location="${build.dir}/buildjar.xml"/> |
|---|
| 128 |
<property name="buildsh" location="${build.dir}/buildsh.xml"/> |
|---|
| 129 |
<property name="buildwar" location="${build.dir}/buildwar.xml"/> |
|---|
| 130 |
|
|---|
| 131 |
<property name="org.bedework.build.caldav" value="yes" /> |
|---|
| 132 |
|
|---|
| 133 |
<condition property="org.bedework.qs.build.caldav"> |
|---|
| 134 |
<equals arg1="yes" arg2="${org.bedework.build.caldav}"/> |
|---|
| 135 |
</condition> |
|---|
| 136 |
|
|---|
| 137 |
<property name="org.bedework.build.freebusy" value="no" /> |
|---|
| 138 |
|
|---|
| 139 |
<condition property="org.bedework.qs.build.freebusy"> |
|---|
| 140 |
<equals arg1="yes" arg2="${org.bedework.build.freebusy}"/> |
|---|
| 141 |
</condition> |
|---|
| 142 |
|
|---|
| 143 |
<mkdir dir="${dist.home}" /> |
|---|
| 144 |
|
|---|
| 145 |
<mkdir dir="${bin.home}" /> |
|---|
| 146 |
|
|---|
| 147 |
<property name="org.bedework.empty.dir" |
|---|
| 148 |
location="${dist.home}/empty-dir" /> |
|---|
| 149 |
<mkdir dir="${org.bedework.empty.dir}" /> |
|---|
| 150 |
|
|---|
| 151 |
<fileset id="empty.fileset" dir="${org.bedework.empty.dir}" |
|---|
| 152 |
excludes="*" /> |
|---|
| 153 |
<!-- default to empty --> |
|---|
| 154 |
<fileset id="base.resource.files" refid="empty.fileset" /> |
|---|
| 155 |
|
|---|
| 156 |
<!-- ==================== Subcomponent Compilation Classpath ==================== --> |
|---|
| 157 |
|
|---|
| 158 |
<path id="compile.classpath"> |
|---|
| 159 |
<fileset dir="${lib.dir}"> |
|---|
| 160 |
<include name="*.jar"/> |
|---|
| 161 |
</fileset> |
|---|
| 162 |
<fileset dir="${dist.home}"> |
|---|
| 163 |
<include name="*.jar"/> |
|---|
| 164 |
</fileset> |
|---|
| 165 |
</path> |
|---|
| 166 |
|
|---|
| 167 |
<!-- =============================================================== |
|---|
| 168 |
Locations and jar files built by this project. |
|---|
| 169 |
=============================================================== --> |
|---|
| 170 |
|
|---|
| 171 |
<property name="org.bedework.temp.dir" |
|---|
| 172 |
location="${dist.home}/temp" /> |
|---|
| 173 |
|
|---|
| 174 |
<property name="org.bedework.temp.wars.home" |
|---|
| 175 |
location="${org.bedework.temp.dir}/wars" /> |
|---|
| 176 |
|
|---|
| 177 |
<property name="org.bedework.temp.shellscr.home" |
|---|
| 178 |
location="${org.bedework.temp.dir}/shellscr" /> |
|---|
| 179 |
|
|---|
| 180 |
<property name="org.bedework.config.base" |
|---|
| 181 |
location="${org.bedework.project.bedework}/config" /> |
|---|
| 182 |
|
|---|
| 183 |
<property name="org.bedework.default.lib" |
|---|
| 184 |
location="${org.bedework.project.bedework}/lib" /> |
|---|
| 185 |
|
|---|
| 186 |
<property name="org.bedework.deployment.base" |
|---|
| 187 |
location="${org.bedework.project.bedework}/deployment" /> |
|---|
| 188 |
|
|---|
| 189 |
<property name="org.bedework.deployutil.jar" |
|---|
| 190 |
location="${bin.home}/${org.bedework.deployutil.jar.name}-${project.version}.jar" /> |
|---|
| 191 |
|
|---|
| 192 |
<!-- =============================================================== |
|---|
| 193 |
Default properties. |
|---|
| 194 |
=============================================================== --> |
|---|
| 195 |
<property file="${org.bedework.defaultdefs.properties}" /> |
|---|
| 196 |
</target> |
|---|
| 197 |
|
|---|
| 198 |
<!-- ================================================================= |
|---|
| 199 |
"build" and "clean" targets for the project - does not build |
|---|
| 200 |
subsidiary projects like rpiutil and access |
|---|
| 201 |
================================================================= --> |
|---|
| 202 |
|
|---|
| 203 |
<target name="build" depends="init,build.rpiutil,build.access,build.davutil, |
|---|
| 204 |
build.calendarapi,build.dumprestore,build.synchml.if, |
|---|
| 205 |
build.webdav.if,build.caldav.if,build.caldavTest.if, |
|---|
| 206 |
build.freebusy.if,build.bwtools,build.webapps, |
|---|
| 207 |
build.deployutil" |
|---|
| 208 |
description="builds the project"/> |
|---|
| 209 |
|
|---|
| 210 |
<target name="clean" depends="init,clean.rpiutil,clean.access,clean.davutil, |
|---|
| 211 |
clean.calendarapi,clean.dumprestore,clean.synchml.if, |
|---|
| 212 |
clean.webdav.if,clean.caldav.if,clean.caldavTest.if, |
|---|
| 213 |
clean.freebusy.if,clean.bwtools,clean.webapps" |
|---|
| 214 |
description="Remove all generated files."> |
|---|
| 215 |
<delete dir="${dist.home}" /> |
|---|
| 216 |
<delete dir="${bin.home}" /> |
|---|
| 217 |
</target> |
|---|
| 218 |
|
|---|
| 219 |
<target name="quickstart-clean" depends="init,clean.rpiutil,clean.access,clean.davutil, |
|---|
| 220 |
clean.calendarapi,clean.dumprestore,clean.synchml.if, |
|---|
| 221 |
clean.webdav.if,clean.caldav.if,clean.caldavTest.if, |
|---|
| 222 |
clean.freebusy.if,clean.bwtools,clean.webapps" |
|---|
| 223 |
description="partial clean up for quickstart."> |
|---|
| 224 |
<delete dir="${bin.home}" /> |
|---|
| 225 |
<delete dir="${org.bedework.temp.dir}" /> |
|---|
| 226 |
<delete dir="${org.bedework.empty.dir}" /> |
|---|
| 227 |
|
|---|
| 228 |
<delete> |
|---|
| 229 |
<fileset dir="${dist.home}" includes="*.war"/> |
|---|
| 230 |
</delete> |
|---|
| 231 |
</target> |
|---|
| 232 |
|
|---|
| 233 |
<target name="clean.build" depends="clean, build" |
|---|
| 234 |
description="cleans then builds the project"/> |
|---|
| 235 |
|
|---|
| 236 |
<!-- ================================================================= |
|---|
| 237 |
The "deploy" and "deploy.all" target builds and deploys the applications |
|---|
| 238 |
================================================================= --> |
|---|
| 239 |
|
|---|
| 240 |
<target name="deploy.debug" depends="build" |
|---|
| 241 |
description="builds and deploys the applications"> |
|---|
| 242 |
<ant antfile="${org.bedework.project.bedework}/deployment/build.xml" inheritrefs="true" |
|---|
| 243 |
target="deploy" > |
|---|
| 244 |
<property name="app.debug.val" value="9" /> |
|---|
| 245 |
</ant> |
|---|
| 246 |
</target> |
|---|
| 247 |
|
|---|
| 248 |
<target name="deploy" depends="build" |
|---|
| 249 |
description="builds and deploys the applications"> |
|---|
| 250 |
<ant antfile="${org.bedework.project.bedework}/deployment/build.xml" inheritrefs="true" |
|---|
| 251 |
target="deploy" /> |
|---|
| 252 |
</target> |
|---|
| 253 |
|
|---|
| 254 |
<!-- ================================================================= |
|---|
| 255 |
The "clean.deploy" target cleans, builds and deploys the applications |
|---|
| 256 |
================================================================= --> |
|---|
| 257 |
|
|---|
| 258 |
<target name="clean.deploy" depends="clean,deploy" /> |
|---|
| 259 |
|
|---|
| 260 |
<target name="clean.deploy.debug" depends="clean,deploy.debug" /> |
|---|
| 261 |
|
|---|
| 262 |
<!-- ================================================================= |
|---|
| 263 |
The "build.configured" target builds configured applications |
|---|
| 264 |
================================================================= --> |
|---|
| 265 |
|
|---|
| 266 |
<target name="build.configured" depends="build" |
|---|
| 267 |
description="Build configured applications" > |
|---|
| 268 |
<ant antfile="${org.bedework.project.bedework}/deployment}/build.xml" inheritrefs="true" |
|---|
| 269 |
target="build.configured" > |
|---|
| 270 |
<property name="app.debug.val" value="9" /> |
|---|
| 271 |
</ant> |
|---|
| 272 |
</target> |
|---|
| 273 |
|
|---|
| 274 |
<target name="build.configured.debug" depends="build" |
|---|
| 275 |
description="Build configured applications" > |
|---|
| 276 |
<ant antfile="${org.bedework.project.bedework}/deployment}/build.xml" inheritrefs="true" |
|---|
| 277 |
target="build.configured" /> |
|---|
| 278 |
</target> |
|---|
| 279 |
|
|---|
| 280 |
<target name="clean.build.configured" depends="clean,build.configured" /> |
|---|
| 281 |
|
|---|
| 282 |
<target name="clean.build.configured.debug" depends="clean,build.configured.debug"/> |
|---|
| 283 |
|
|---|
| 284 |
<!-- ================================================================= |
|---|
| 285 |
Targets to build sub-projects and copy the results into dependent |
|---|
| 286 |
libraries. Each sub-project generates a libapi directory which |
|---|
| 287 |
contains the public api for that project. |
|---|
| 288 |
================================================================= --> |
|---|
| 289 |
|
|---|
| 290 |
<!-- ................................................................. |
|---|
| 291 |
access |
|---|
| 292 |
.................................................................. --> |
|---|
| 293 |
<target name="build.access" depends="init" |
|---|
| 294 |
description="builds the access project"> |
|---|
| 295 |
<ant antfile="${org.bedework.project.access}/build.xml" inheritall="false" |
|---|
| 296 |
target="build-all" /> |
|---|
| 297 |
|
|---|
| 298 |
<copy-to-dependent this="${org.bedework.project.access}" |
|---|
| 299 |
target="${org.bedework.project.caldav}" /> |
|---|
| 300 |
<copy-to-dependent this="${org.bedework.project.access}" |
|---|
| 301 |
target="${org.bedework.project.calendarapi}" /> |
|---|
| 302 |
<copy-to-dependent this="${org.bedework.project.access}" |
|---|
| 303 |
target="${org.bedework.project.davutil}" /> |
|---|
| 304 |
<copy-to-dependent this="${org.bedework.project.access}" |
|---|
| 305 |
target="${org.bedework.project.dumprestore}" /> |
|---|
| 306 |
<copy-to-dependent this="${org.bedework.project.access}" |
|---|
| 307 |
target="${org.bedework.project.webapps}" /> |
|---|
| 308 |
<copy-to-dependent this="${org.bedework.project.access}" |
|---|
| 309 |
target="${org.bedework.project.webdav}" /> |
|---|
| 310 |
|
|---|
| 311 |
<copy-to-bin this="${org.bedework.project.access}"/> |
|---|
| 312 |
</target> |
|---|
| 313 |
|
|---|
| 314 |
<target name="clean.access" depends="init" |
|---|
| 315 |
description="cleans the access project"> |
|---|
| 316 |
<ant antfile="${org.bedework.project.access}/build.xml" inheritall="false" |
|---|
| 317 |
target="clean" /> |
|---|
| 318 |
</target> |
|---|
| 319 |
|
|---|
| 320 |
<target name="clean.build.access" depends="clean.access,build.access" |
|---|
| 321 |
description="builds the access project"/> |
|---|
| 322 |
|
|---|
| 323 |
<!-- ................................................................. |
|---|
| 324 |
bwtools |
|---|
| 325 |
.................................................................. --> |
|---|
| 326 |
<target name="build.bwtools" depends="init" |
|---|
| 327 |
description="builds the bwtools project"> |
|---|
| 328 |
<ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false" |
|---|
| 329 |
target="build-all" /> |
|---|
| 330 |
|
|---|
| 331 |
<copy-to-bin this="${org.bedework.project.bwtools}"/> |
|---|
| 332 |
</target> |
|---|
| 333 |
|
|---|
| 334 |
<target name="clean.bwtools" depends="init" |
|---|
| 335 |
description="clean the bwtools project"> |
|---|
| 336 |
<ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false" |
|---|
| 337 |
target="clean" /> |
|---|
| 338 |
</target> |
|---|
| 339 |
|
|---|
| 340 |
<target name="clean.build.bwtools" depends="clean.bwtools,build.bwtools" |
|---|
| 341 |
description="builds the bwtools project"/> |
|---|
| 342 |
|
|---|
| 343 |
<!-- ................................................................. |
|---|
| 344 |
caldav |
|---|
| 345 |
.................................................................. --> |
|---|
| 346 |
<target name="build.caldav" depends="init" |
|---|
| 347 |
description="builds the caldav project"> |
|---|
| 348 |
<ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false" |
|---|
| 349 |
target="build-all" /> |
|---|
| 350 |
|
|---|
| 351 |
<copy-to-bin this="${org.bedework.project.caldav}"/> |
|---|
| 352 |
</target> |
|---|
| 353 |
|
|---|
| 354 |
<target name="clean.caldav" depends="init" |
|---|
| 355 |
description="clean the caldav project"> |
|---|
| 356 |
<ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false" |
|---|
| 357 |
target="clean" /> |
|---|
| 358 |
</target> |
|---|
| 359 |
|
|---|
| 360 |
<target name="clean.build.caldav" depends="clean.caldav,build.caldav" |
|---|
| 361 |
description="clean builds the caldav project"/> |
|---|
| 362 |
|
|---|
| 363 |
<target name="build.caldav.if" depends="init" |
|---|
| 364 |
description="builds the jars" if="org.bedework.qs.build.caldav" > |
|---|
| 365 |
<antcall inheritrefs="true" target="build.caldav" /> |
|---|
| 366 |
</target> |
|---|
| 367 |
|
|---|
| 368 |
<target name="clean.caldav.if" depends="init" |
|---|
| 369 |
description="cleans jars" if="org.bedework.qs.build.caldav" > |
|---|
| 370 |
<antcall inheritrefs="true" target="clean.caldav" /> |
|---|
| 371 |
</target> |
|---|
| 372 |
|
|---|
| 373 |
<!-- ................................................................. |
|---|
| 374 |
caldavTest |
|---|
| 375 |
.................................................................. --> |
|---|
| 376 |
<target name="build.caldavTest" depends="init" |
|---|
| 377 |
description="builds the caldavTest project"> |
|---|
| 378 |
<ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false" |
|---|
| 379 |
target="build-all" /> |
|---|
| 380 |
|
|---|
| 381 |
<copy-to-bin this="${org.bedework.project.caldavTest}"/> |
|---|
| 382 |
</target> |
|---|
| 383 |
|
|---|
| 384 |
<target name="clean.caldavTest" depends="init" |
|---|
| 385 |
description="clean the caldavTest project"> |
|---|
| 386 |
<ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false" |
|---|
| 387 |
target="clean" /> |
|---|
| 388 |
</target> |
|---|
| 389 |
|
|---|
| 390 |
<target name="clean.build.caldavTest" depends="clean.caldavTest,build.caldavTest" |
|---|
| 391 |
description="clean builds the caldavTest project"/> |
|---|
| 392 |
|
|---|
| 393 |
<target name="build.caldavTest.if" depends="init" |
|---|
| 394 |
description="builds the jars" if="org.bedework.qs.build.caldav" > |
|---|
| 395 |
<antcall inheritrefs="true" target="build.caldavTest" /> |
|---|
| 396 |
</target> |
|---|
| 397 |
|
|---|
| 398 |
<target name="clean.caldavTest.if" depends="init" |
|---|
| 399 |
description="cleans jars" if="org.bedework.qs.build.caldav" > |
|---|
| 400 |
<antcall inheritrefs="true" target="clean.caldavTest" /> |
|---|
| 401 |
</target> |
|---|
| 402 |
|
|---|
| 403 |
<!-- ................................................................. |
|---|
| 404 |
calendarapi |
|---|
| 405 |
.................................................................. --> |
|---|
| 406 |
<target name="build.calendarapi" depends="init" |
|---|
| 407 |
description="builds the calendar project"> |
|---|
| 408 |
<ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false" |
|---|
| 409 |
target="build-all" /> |
|---|
| 410 |
|
|---|
| 411 |
<copy-to-dependent this="${org.bedework.project.calendarapi}" |
|---|
| 412 |
target="${org.bedework.project.caldav}" /> |
|---|
| 413 |
<copy-to-dependent this="${org.bedework.project.calendarapi}" |
|---|
| 414 |
target="${org.bedework.project.dumprestore}" /> |
|---|
| 415 |
<copy-special-to-dependent this="${org.bedework.project.calendarapi}" |
|---|
| 416 |
target="${org.bedework.project.dumprestore}" |
|---|
| 417 |
prefix="bw-calcore" /> |
|---|
| 418 |
<copy-to-dependent this="${org.bedework.project.calendarapi}" |
|---|
| 419 |
target="${org.bedework.project.freebusy}" /> |
|---|
| 420 |
<copy-to-dependent this="${org.bedework.project.calendarapi}" |
|---|
| 421 |
target="${org.bedework.project.synchml}" /> |
|---|
| 422 |
<copy-to-dependent this="${org.bedework.project.calendarapi}" |
|---|
| 423 |
target="${org.bedework.project.webapps}" /> |
|---|
| 424 |
|
|---|
| 425 |
<copy-to-bin this="${org.bedework.project.calendarapi}"/> |
|---|
| 426 |
</target> |
|---|
| 427 |
|
|---|
| 428 |
<target name="clean.calendarapi" depends="init" |
|---|
| 429 |
description="clean the calendar project"> |
|---|
| 430 |
<ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false" |
|---|
| 431 |
target="clean" /> |
|---|
| 432 |
</target> |
|---|
| 433 |
|
|---|
| 434 |
<target name="clean.build.calendarapi" depends="clean.calendarapi,build.calendarapi" |
|---|
| 435 |
description="clean builds the caldavTest project"/> |
|---|
| 436 |
|
|---|
| 437 |
<!-- ................................................................. |
|---|
| 438 |
davutil |
|---|
| 439 |
.................................................................. --> |
|---|
| 440 |
<target name="build.davutil" depends="init" |
|---|
| 441 |
description="builds the davutil project"> |
|---|
| 442 |
<ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false" |
|---|
| 443 |
target="build-all" /> |
|---|
| 444 |
|
|---|
| 445 |
<copy-to-dependent this="${org.bedework.project.davutil}" |
|---|
| 446 |
target="${org.bedework.project.caldav}" /> |
|---|
| 447 |
<copy-to-dependent this="${org.bedework.project.davutil}" |
|---|
| 448 |
target="${org.bedework.project.caldavTest}" /> |
|---|
| 449 |
<copy-to-dependent this="${org.bedework.project.davutil}" |
|---|
| 450 |
target="${org.bedework.project.calendarapi}" /> |
|---|
| 451 |
<copy-to-dependent this="${org.bedework.project.davutil}" |
|---|
| 452 |
target="${org.bedework.project.freebusy}" /> |
|---|
| 453 |
<copy-to-dependent this="${org.bedework.project.davutil}" |
|---|
| 454 |
target="${org.bedework.project.webapps}" /> |
|---|
| 455 |
<copy-to-dependent this="${org.bedework.project.davutil}" |
|---|
| 456 |
target="${org.bedework.project.webdav}" /> |
|---|
| 457 |
|
|---|
| 458 |
<copy-to-bin this="${org.bedework.project.davutil}"/> |
|---|
| 459 |
</target> |
|---|
| 460 |
|
|---|
| 461 |
<target name="clean.davutil" depends="init" |
|---|
| 462 |
description="cleans the davutil project"> |
|---|
| 463 |
<ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false" |
|---|
| 464 |
target="clean" /> |
|---|
| 465 |
</target> |
|---|
| 466 |
|
|---|
| 467 |
<target name="clean.build.davutil" depends="clean.davutil,build.davutil" |
|---|
| 468 |
description="clean builds the davutil project"/> |
|---|
| 469 |
|
|---|
| 470 |
<!-- ................................................................. |
|---|
| 471 |
dumprestore |
|---|
| 472 |
.................................................................. --> |
|---|
| 473 |
<target name="build.dumprestore" depends="init" |
|---|
| 474 |
description="builds the dumprestore project"> |
|---|
| 475 |
<ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false" |
|---|
| 476 |
target="build-all" /> |
|---|
| 477 |
|
|---|
| 478 |
<copy-to-bin this="${org.bedework.project.dumprestore}"/> |
|---|
| 479 |
</target> |
|---|
| 480 |
|
|---|
| 481 |
<target name="clean.dumprestore" depends="init" |
|---|
| 482 |
description="clean the dumprestore project"> |
|---|
| 483 |
<ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false" |
|---|
| 484 |
target="clean" /> |
|---|
| 485 |
</target> |
|---|
| 486 |
|
|---|
| 487 |
<target name="clean.build.dumprestore" depends="clean.dumprestore,build.dumprestore" |
|---|
| 488 |
description="builds the dumprestore project"/> |
|---|
| 489 |
|
|---|
| 490 |
<!-- ................................................................. |
|---|
| 491 |
freebusy |
|---|
| 492 |
.................................................................. --> |
|---|
| 493 |
<target name="build.freebusy" depends="init" |
|---|
| 494 |
description="builds the freebusy project"> |
|---|
| 495 |
<ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false" |
|---|
| 496 |
target="build-all" /> |
|---|
| 497 |
|
|---|
| 498 |
<copy-to-bin this="${org.bedework.project.freebusy}"/> |
|---|
| 499 |
</target> |
|---|
| 500 |
|
|---|
| 501 |
<target name="clean.freebusy" depends="init" |
|---|
| 502 |
description="cleans the freebusy project"> |
|---|
| 503 |
<ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false" |
|---|
| 504 |
target="clean" /> |
|---|
| 505 |
</target> |
|---|
| 506 |
|
|---|
| 507 |
<target name="clean.build.freebusy" depends="clean.freebusy,build.freebusy" |
|---|
| 508 |
description="builds the freebusy project"/> |
|---|
| 509 |
|
|---|
| 510 |
<target name="build.freebusy.if" depends="init" |
|---|
| 511 |
description="builds the jars" if="org.bedework.qs.build.freebusy" > |
|---|
| 512 |
<antcall inheritrefs="true" target="build.freebusy" /> |
|---|
| 513 |
</target> |
|---|
| 514 |
|
|---|
| 515 |
<target name="clean.freebusy.if" depends="init" if="org.bedework.qs.build.freebusy" > |
|---|
| 516 |
</target> |
|---|
| 517 |
|
|---|
| 518 |
<!-- ................................................................. |
|---|
| 519 |
rpiutil |
|---|
| 520 |
.................................................................. --> |
|---|
| 521 |
<target name="build.rpiutil" depends="init" |
|---|
| 522 |
description="builds the rpiutil project"> |
|---|
| 523 |
<ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false" |
|---|
| 524 |
target="build-all" /> |
|---|
| 525 |
|
|---|
| 526 |
<copy-to-dependent this="${org.bedework.project.rpiutil}" |
|---|
| 527 |
target="${org.bedework.project.access}" /> |
|---|
| 528 |
<copy-to-dependent this="${org.bedework.project.rpiutil}" |
|---|
| 529 |
target="${org.bedework.project.caldav}" /> |
|---|
| 530 |
<copy-to-dependent this="${org.bedework.project.rpiutil}" |
|---|
| 531 |
target="${org.bedework.project.calendarapi}" /> |
|---|
| 532 |
<copy-to-dependent this="${org.bedework.project.rpiutil}" |
|---|
| 533 |
target="${org.bedework.project.davutil}" /> |
|---|
| 534 |
<copy-to-dependent this="${org.bedework.project.rpiutil}" |
|---|
| 535 |
target="${org.bedework.project.freebusy}" /> |
|---|
| 536 |
<copy-to-dependent this="${org.bedework.project.rpiutil}" |
|---|
| 537 |
target="${org.bedework.project.webapps}" /> |
|---|
| 538 |
<copy-to-dependent this="${org.bedework.project.rpiutil}" |
|---|
| 539 |
target="${org.bedework.project.webdav}" /> |
|---|
| 540 |
|
|---|
| 541 |
<copy-to-bin this="${org.bedework.project.rpiutil}"/> |
|---|
| 542 |
</target> |
|---|
| 543 |
|
|---|
| 544 |
<target name="clean.rpiutil" depends="init" |
|---|
| 545 |
description="cleans the rpiutil project"> |
|---|
| 546 |
<ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false" |
|---|
| 547 |
target="clean" /> |
|---|
| 548 |
</target> |
|---|
| 549 |
|
|---|
| 550 |
<target name="clean.build.rpiutil" depends="clean.rpiutil,build.rpiutil" |
|---|
| 551 |
description="builds the rpiutil project"/> |
|---|
| 552 |
|
|---|
| 553 |
<!-- ................................................................. |
|---|
| 554 |
synchml |
|---|
| 555 |
.................................................................. --> |
|---|
| 556 |
<target name="build.synchml" depends="init" |
|---|
| 557 |
description="builds the synchml project"> |
|---|
| 558 |
<ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false" |
|---|
| 559 |
target="build-all" /> |
|---|
| 560 |
|
|---|
| 561 |
<copy-to-bin this="${org.bedework.project.synchml}"/> |
|---|
| 562 |
</target> |
|---|
| 563 |
|
|---|
| 564 |
<target name="clean.synchml" depends="init" |
|---|
| 565 |
description="clean the synchml project"> |
|---|
| 566 |
<ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false" |
|---|
| 567 |
target="clean" /> |
|---|
| 568 |
</target> |
|---|
| 569 |
|
|---|
| 570 |
<target name="clean.build.synchml" depends="clean.synchml,clean.synchml" |
|---|
| 571 |
description="builds the synchml project"/> |
|---|
| 572 |
|
|---|
| 573 |
<target name="build.synchml.if" depends="init" |
|---|
| 574 |
description="builds the jars" if="org.bedework.qs.build.synchml" > |
|---|
| 575 |
<antcall inheritrefs="true" target="build.synchml" /> |
|---|
| 576 |
</target> |
|---|
| 577 |
|
|---|
| 578 |
<target name="clean.synchml.if" depends="init" |
|---|
| 579 |
description="cleans jars" if="org.bedework.qs.build.synchml" > |
|---|
| 580 |
<antcall inheritrefs="true" target="clean.synchml" /> |
|---|
| 581 |
</target> |
|---|
| 582 |
|
|---|
| 583 |
<!-- ................................................................. |
|---|
| 584 |
webapps |
|---|
| 585 |
.................................................................. --> |
|---|
| 586 |
<target name="build.webapps" depends="init" |
|---|
| 587 |
description="builds the webapps project"> |
|---|
| 588 |
<ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false" |
|---|
| 589 |
target="build-all" /> |
|---|
| 590 |
|
|---|
| 591 |
<copy-to-bin this="${org.bedework.project.webapps}"/> |
|---|
| 592 |
</target> |
|---|
| 593 |
|
|---|
| 594 |
<target name="clean.webapps" depends="init" |
|---|
| 595 |
description="clean the webapps project"> |
|---|
| 596 |
<ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false" |
|---|
| 597 |
target="clean" /> |
|---|
| 598 |
</target> |
|---|
| 599 |
|
|---|
| 600 |
<target name="clean.build.webapps" depends="clean.webapps,build.webapps" |
|---|
| 601 |
description="builds the webapps project"/> |
|---|
| 602 |
|
|---|
| 603 |
<!-- ................................................................. |
|---|
| 604 |
webdav |
|---|
| 605 |
.................................................................. --> |
|---|
| 606 |
<target name="build.webdav" depends="init" |
|---|
| 607 |
description="builds the webdav project"> |
|---|
| 608 |
<ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false" |
|---|
| 609 |
target="build-all" /> |
|---|
| 610 |
|
|---|
| 611 |
<copy-to-dependent this="${org.bedework.project.webdav}" |
|---|
| 612 |
target="${org.bedework.project.caldav}" /> |
|---|
| 613 |
|
|---|
| 614 |
<copy-to-bin this="${org.bedework.project.webdav}"/> |
|---|
| 615 |
</target> |
|---|
| 616 |
|
|---|
| 617 |
<target name="clean.webdav" depends="init" |
|---|
| 618 |
description="cleans the webdav project"> |
|---|
| 619 |
<ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false" |
|---|
| 620 |
target="clean" /> |
|---|
| 621 |
</target> |
|---|
| 622 |
|
|---|
| 623 |
<target name="clean.build.webdav" depends="clean.webdav,build.webdav" |
|---|
| 624 |
description="builds the webdav project"/> |
|---|
| 625 |
|
|---|
| 626 |
<target name="build.webdav.if" depends="init" |
|---|
| 627 |
description="builds the jars" if="org.bedework.qs.build.caldav" > |
|---|
| 628 |
<antcall inheritrefs="true" target="build.webdav" /> |
|---|
| 629 |
</target> |
|---|
| 630 |
|
|---|
| 631 |
<target name="clean.webdav.if" depends="init" |
|---|
| 632 |
description="cleans jars" if="org.bedework.qs.build.caldav" > |
|---|
| 633 |
<antcall inheritrefs="true" target="clean.webdav" /> |
|---|
| 634 |
</target> |
|---|
| 635 |
|
|---|
| 636 |
<!-- ================================================================= |
|---|
| 637 |
Targets to build sub-components of this project. |
|---|
| 638 |
================================================================= --> |
|---|
| 639 |
|
|---|
| 640 |
<target name="build.deployutil" depends="init" |
|---|
| 641 |
description="builds the deployutil component"> |
|---|
| 642 |
<ant antfile="${org.bedework.project.bedework}/deployutil/build.xml" inheritrefs="true" |
|---|
| 643 |
target="build" > |
|---|
| 644 |
<property name="build.jar.file" location="${org.bedework.deployutil.jar}" /> |
|---|
| 645 |
</ant> |
|---|
| 646 |
</target> |
|---|
| 647 |
|
|---|
| 648 |
<!-- ================================================================= |
|---|
| 649 |
Build and run the unit test suite |
|---|
| 650 |
================================================================= --> |
|---|
| 651 |
|
|---|
| 652 |
<target name="bld.test" depends="init" |
|---|
| 653 |
description="Build and run tests"> |
|---|
| 654 |
<ant antfile="${calendar.build.file}" inheritrefs="true" |
|---|
| 655 |
target="bld.test" /> |
|---|
| 656 |
</target> |
|---|
| 657 |
|
|---|
| 658 |
<target name="run.test" depends="init" |
|---|
| 659 |
description="Build and run tests"> |
|---|
| 660 |
<ant antfile="${calendar.build.file}" inheritrefs="true" |
|---|
| 661 |
target="run.test" /> |
|---|
| 662 |
</target> |
|---|
| 663 |
|
|---|
| 664 |
<target name="run.test.debug" depends="init" |
|---|
| 665 |
description="Build and run tests"> |
|---|
| 666 |
<ant antfile="${calendar.build.file}" inheritrefs="true" |
|---|
| 667 |
target="run.test" > |
|---|
| 668 |
<property name="org.bedework.debug" value="yes" /> |
|---|
| 669 |
</ant> |
|---|
| 670 |
</target> |
|---|
| 671 |
|
|---|
| 672 |
<!-- Rebuild the http test suite only --> |
|---|
| 673 |
<target name="httptest" depends="init" |
|---|
| 674 |
description="Run httptest suite" > |
|---|
| 675 |
<input message="httptest may destroy this calendar db. Proceed with test" |
|---|
| 676 |
validargs="y,n" |
|---|
| 677 |
addproperty="do.httptest" /> |
|---|
| 678 |
<condition property="do.abort"> |
|---|
| 679 |
<equals arg1="n" arg2="${do.httptest}"/> |
|---|
| 680 |
</condition> |
|---|
| 681 |
<fail if="do.abort">httptest aborted by user.</fail> |
|---|
| 682 |
|
|---|
| 683 |
<ant antfile="${calendar.build.file}" inheritrefs="true" |
|---|
| 684 |
target="bld.httptest" /> |
|---|
| 685 |
|
|---|
| 686 |
<ant antfile="${calendar.build.file}" inheritrefs="true" |
|---|
| 687 |
target="run.httptest" /> |
|---|
| 688 |
</target> |
|---|
| 689 |
|
|---|
| 690 |
<!-- ======================== javadoc target ======================= |
|---|
| 691 |
================================================================= --> |
|---|
| 692 |
|
|---|
| 693 |
<target name="javadoc" depends="init" |
|---|
| 694 |
description="Generate javadoc"> |
|---|
| 695 |
<echo message="*************** Needs to do javadoc for all sub-projects and" /> |
|---|
| 696 |
<echo message="*************** link them in some way." /> |
|---|
| 697 |
</target> |
|---|
| 698 |
|
|---|
| 699 |
<!-- ============================================================================= |
|---|
| 700 |
Update dependent project (target) from a project just built (this) |
|---|
| 701 |
with a special library (i.e. not one in libapi |
|---|
| 702 |
============================================================================= --> |
|---|
| 703 |
<macrodef name="copy-special-to-dependent"> |
|---|
| 704 |
<attribute name="target"/> |
|---|
| 705 |
<attribute name="this"/> |
|---|
| 706 |
<attribute name="fromdir" default="dist"/> |
|---|
| 707 |
<attribute name="prefix" /> |
|---|
| 708 |
<sequential> |
|---|
| 709 |
<copy todir="@{target}/lib" overwrite="yes"> |
|---|
| 710 |
<fileset dir="@{this}/@{fromdir}"> |
|---|
| 711 |
<include name="@{prefix}*.jar" /> |
|---|
| 712 |
</fileset> |
|---|
| 713 |
</copy> |
|---|
| 714 |
</sequential> |
|---|
| 715 |
</macrodef> |
|---|
| 716 |
|
|---|
| 717 |
<!-- ============================================================================= |
|---|
| 718 |
Update dependent project (target) from a project just built (this). |
|---|
| 719 |
============================================================================= --> |
|---|
| 720 |
<macrodef name="copy-to-dependent"> |
|---|
| 721 |
<attribute name="target"/> |
|---|
| 722 |
<attribute name="this"/> |
|---|
| 723 |
<attribute name="fromdir" default="libapi"/> |
|---|
| 724 |
<sequential> |
|---|
| 725 |
<copy todir="@{target}/lib" overwrite="yes"> |
|---|
| 726 |
<fileset dir="@{this}/@{fromdir}"> |
|---|
| 727 |
<include name="*.jar" /> |
|---|
| 728 |
</fileset> |
|---|
| 729 |
</copy> |
|---|
| 730 |
</sequential> |
|---|
| 731 |
</macrodef> |
|---|
| 732 |
|
|---|
| 733 |
<!-- ============================================================================= |
|---|
| 734 |
Copy from a project just built (this) into bedework bin directory. |
|---|
| 735 |
============================================================================= --> |
|---|
| 736 |
<macrodef name="copy-to-bin"> |
|---|
| 737 |
<attribute name="this"/> |
|---|
| 738 |
<sequential> |
|---|
| 739 |
<copy todir="${org.bedework.project.bedework}/bin" overwrite="yes"> |
|---|
| 740 |
<fileset dir="@{this}/dist"> |
|---|
| 741 |
<include name="*.jar" /> |
|---|
| 742 |
</fileset> |
|---|
| 743 |
</copy> |
|---|
| 744 |
</sequential> |
|---|
| 745 |
</macrodef> |
|---|
| 746 |
</project> |
|---|