| 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="deploy" basedir="."> |
|---|
| 9 |
<property environment="env"/> |
|---|
| 10 |
|
|---|
| 11 |
<!-- This affects some of the build process in the projects --> |
|---|
| 12 |
<property name="org.bedework.quickstart.build" value="true" /> |
|---|
| 13 |
|
|---|
| 14 |
<!-- this project --> |
|---|
| 15 |
<property name="org.bedework.project.bedework" |
|---|
| 16 |
location="${basedir}" /> |
|---|
| 17 |
|
|---|
| 18 |
<property name="org.bedework.libcache.dir" |
|---|
| 19 |
location="${org.bedework.project.bedework}/libcache"/> |
|---|
| 20 |
|
|---|
| 21 |
<property name="build.dir" location="${org.bedework.project.bedework}/build"/> |
|---|
| 22 |
|
|---|
| 23 |
<property name="buildsh" location="${build.dir}/buildsh.xml"/> |
|---|
| 24 |
<property name="buildwar" location="${build.dir}/buildwar.xml"/> |
|---|
| 25 |
|
|---|
| 26 |
<!-- ========================= deployutil ================================ --> |
|---|
| 27 |
|
|---|
| 28 |
<property name="org.bedework.default.lib" |
|---|
| 29 |
location="${org.bedework.project.bedework}/lib" /> |
|---|
| 30 |
|
|---|
| 31 |
<property name="bw.project.home" location="${org.bedework.project.bedework}"/> |
|---|
| 32 |
|
|---|
| 33 |
<property file="${bw.project.home}/build.properties" /> |
|---|
| 34 |
|
|---|
| 35 |
<property name="project.version" value="${org.bedework.version}"/> |
|---|
| 36 |
|
|---|
| 37 |
<import file="${build.dir}/buildTools/deftasks.xml"/> |
|---|
| 38 |
|
|---|
| 39 |
<deftasks/> |
|---|
| 40 |
|
|---|
| 41 |
<var name="org.bedework.jars.built" value="0" /> |
|---|
| 42 |
<var name="org.bedework.jars.checked" value="0" /> |
|---|
| 43 |
|
|---|
| 44 |
<import file="${build.dir}/buildfilters.xml" /> |
|---|
| 45 |
<import file="${build.dir}/loadDeployConfig.xml"/> |
|---|
| 46 |
<import file="${build.dir}/dirTools.xml"/> |
|---|
| 47 |
|
|---|
| 48 |
<target name="README" depends="init" |
|---|
| 49 |
description="Describe targets and their usage"> |
|---|
| 50 |
<loadfile property="org.bedework.README" |
|---|
| 51 |
srcFile="${org.bedework.project.bedework}/docs/README"/> |
|---|
| 52 |
<echo level="info" message="${org.bedework.README}" /> |
|---|
| 53 |
</target> |
|---|
| 54 |
|
|---|
| 55 |
<target name="usage" 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 level="info" message="${org.bedework.README}" /> |
|---|
| 60 |
</target> |
|---|
| 61 |
|
|---|
| 62 |
<target name="init" > |
|---|
| 63 |
<loadDeployConfig /> |
|---|
| 64 |
|
|---|
| 65 |
<!-- =============================================================== |
|---|
| 66 |
Default properties. |
|---|
| 67 |
=============================================================== --> |
|---|
| 68 |
|
|---|
| 69 |
<property name="project.name" value="${org.bedework.package.name}"/> |
|---|
| 70 |
|
|---|
| 71 |
<property name="dist.home" location="${bw.project.home}/dist"/> |
|---|
| 72 |
<property name="lib.dir" location="${bw.project.home}/lib"/> |
|---|
| 73 |
<property name="resources.dir" location="${bw.project.home}/resources"/> |
|---|
| 74 |
<property name="bin.home" location="${bw.project.home}/bin"/> |
|---|
| 75 |
|
|---|
| 76 |
<mkdir dir="${dist.home}" /> |
|---|
| 77 |
|
|---|
| 78 |
<mkdir dir="${bin.home}" /> |
|---|
| 79 |
|
|---|
| 80 |
<property name="org.bedework.empty.dir" |
|---|
| 81 |
location="${dist.home}/empty-dir" /> |
|---|
| 82 |
<mkdir dir="${org.bedework.empty.dir}" /> |
|---|
| 83 |
|
|---|
| 84 |
<fileset id="empty.fileset" dir="${org.bedework.empty.dir}" |
|---|
| 85 |
excludes="*" /> |
|---|
| 86 |
|
|---|
| 87 |
<!-- ==================== Subcomponent Compilation Classpath ==================== |
|---|
| 88 |
|
|---|
| 89 |
<path id="compile.classpath"> |
|---|
| 90 |
<fileset dir="${lib.dir}"> |
|---|
| 91 |
<include name="*.jar"/> |
|---|
| 92 |
</fileset> |
|---|
| 93 |
<fileset dir="${dist.home}"> |
|---|
| 94 |
<include name="*.jar"/> |
|---|
| 95 |
</fileset> |
|---|
| 96 |
</path> |
|---|
| 97 |
--> |
|---|
| 98 |
<!-- =============================================================== |
|---|
| 99 |
This project builds nothing - it just assembles. |
|---|
| 100 |
=============================================================== --> |
|---|
| 101 |
|
|---|
| 102 |
<property name="org.bedework.temp.dir" |
|---|
| 103 |
location="${dist.home}/temp" /> |
|---|
| 104 |
|
|---|
| 105 |
<property name="org.bedework.ear.properties.dir" |
|---|
| 106 |
location="${org.bedework.temp.dir}/ear-properties" /> |
|---|
| 107 |
|
|---|
| 108 |
<property name="org.bedework.config.base" |
|---|
| 109 |
location="${org.bedework.project.bedework}/config" /> |
|---|
| 110 |
|
|---|
| 111 |
<property name="org.bedework.default.lib" |
|---|
| 112 |
location="${org.bedework.project.bedework}/lib" /> |
|---|
| 113 |
|
|---|
| 114 |
<property name="org.bedework.deployment.base" |
|---|
| 115 |
location="${org.bedework.project.bedework}/deployment" /> |
|---|
| 116 |
</target> |
|---|
| 117 |
|
|---|
| 118 |
<!-- ================================================================= |
|---|
| 119 |
"build" and "clean" targets for the project |
|---|
| 120 |
================================================================= --> |
|---|
| 121 |
|
|---|
| 122 |
<target name="build" depends="init" |
|---|
| 123 |
description="builds the project"> |
|---|
| 124 |
</target> |
|---|
| 125 |
|
|---|
| 126 |
<target name="clean" depends="init" |
|---|
| 127 |
description="Remove all generated files."> |
|---|
| 128 |
<delete dir="${dist.home}" /> |
|---|
| 129 |
</target> |
|---|
| 130 |
|
|---|
| 131 |
<target name="quickstart-clean" depends="init" |
|---|
| 132 |
description="partial clean up for quickstart."> |
|---|
| 133 |
<delete dir="${org.bedework.temp.dir}" /> |
|---|
| 134 |
<delete dir="${org.bedework.empty.dir}" /> |
|---|
| 135 |
<delete dir="${bw.project.home}/libcache"/> |
|---|
| 136 |
|
|---|
| 137 |
<delete> |
|---|
| 138 |
<fileset dir="${dist.home}" includes="*.war"/> |
|---|
| 139 |
</delete> |
|---|
| 140 |
</target> |
|---|
| 141 |
|
|---|
| 142 |
<!-- ================================================================= |
|---|
| 143 |
The "deploy" target deploys the applications |
|---|
| 144 |
================================================================= --> |
|---|
| 145 |
|
|---|
| 146 |
<target name="deploy" depends="build" |
|---|
| 147 |
description="builds and deploys the applications"> |
|---|
| 148 |
<ant antfile="${org.bedework.project.bedework}/deployment/build.xml" inheritrefs="true" |
|---|
| 149 |
target="deploy" /> |
|---|
| 150 |
</target> |
|---|
| 151 |
</project> |
|---|