| 86 | | </sequential> |
|---|
| 87 | | </macrodef> |
|---|
| | 88 | |
|---|
| | 89 | <import file="${build.dir}/buildTools/getJar.xml"/> |
|---|
| | 90 | </sequential> |
|---|
| | 91 | </macrodef> |
|---|
| | 92 | |
|---|
| | 93 | <!-- ===================================================================== |
|---|
| | 94 | Assumes projectDefs was called previously. |
|---|
| | 95 | ===================================================================== --> |
|---|
| | 96 | <macrodef name="projectInit"> |
|---|
| | 97 | <sequential> |
|---|
| | 98 | <infoMsg message="* =========== Building ${project.name}" /> |
|---|
| | 99 | |
|---|
| | 100 | <delete dir="${lib.dir}" /> |
|---|
| | 101 | <mkdir dir="${lib.dir}" /> |
|---|
| | 102 | |
|---|
| | 103 | <property name="test.data.dir" |
|---|
| | 104 | location="${dist.home}/test-data" /> |
|---|
| | 105 | |
|---|
| | 106 | <property name="test.reports.dir" |
|---|
| | 107 | location="${dist.home}/test-reports" /> |
|---|
| | 108 | |
|---|
| | 109 | <property name="edu.rpi.cmt.access.empty.dir" |
|---|
| | 110 | location="${dist.home}/empty-dir" /> |
|---|
| | 111 | <mkdir dir="${edu.rpi.cmt.access.empty.dir}" /> |
|---|
| | 112 | |
|---|
| | 113 | <fileset id="empty.fileset" dir="${edu.rpi.cmt.access.empty.dir}" |
|---|
| | 114 | excludes="*" /> |
|---|
| | 115 | |
|---|
| | 116 | <!-- ==================== Compilation Classpath ==================== --> |
|---|
| | 117 | |
|---|
| | 118 | <path id="compile.classpath"> |
|---|
| | 119 | <fileset dir="${lib.dir}"> |
|---|
| | 120 | <include name="*.jar"/> |
|---|
| | 121 | </fileset> |
|---|
| | 122 | <fileset dir="${dist.home}"> |
|---|
| | 123 | <include name="*.jar"/> |
|---|
| | 124 | </fileset> |
|---|
| | 125 | </path> |
|---|
| | 126 | </sequential> |
|---|
| | 127 | </macrodef> |
|---|
| | 128 | |
|---|
| | 129 | <!-- Standard targets for build files. Two targets need to be overridden by |
|---|
| | 130 | the importing task |
|---|
| | 131 | |
|---|
| | 132 | init - carry out project specific initialisation |
|---|
| | 133 | build-source - builds the source to creat ejars. |
|---|
| | 134 | --> |
|---|
| | 135 | |
|---|
| | 136 | <!-- Override this --> |
|---|
| | 137 | <target name="init" /> |
|---|
| | 138 | |
|---|
| | 139 | <!-- Override this --> |
|---|
| | 140 | <target name="build-source" /> |
|---|
| | 141 | |
|---|
| | 142 | <!-- ================================================================= |
|---|
| | 143 | Clean out all library files from other projects and all generated |
|---|
| | 144 | files in preparation for a complete rebuild. |
|---|
| | 145 | |
|---|
| | 146 | Needed because switching versions leaves a load of old bedework |
|---|
| | 147 | generated stuff in the libraries. |
|---|
| | 148 | ================================================================= --> |
|---|
| | 149 | <target name="deep-clean" depends="clean"> |
|---|
| | 150 | <delete dir="${lib.dir}" /> |
|---|
| | 151 | </target> |
|---|
| | 152 | |
|---|
| | 153 | <!-- ================================================================= |
|---|
| | 154 | Clean all generated files |
|---|
| | 155 | ================================================================= --> |
|---|
| | 156 | <target name="clean"> |
|---|
| | 157 | <delete dir="${dist.home}" /> |
|---|
| | 158 | </target> |
|---|
| | 159 | |
|---|
| | 160 | <!-- ================================================================= |
|---|
| | 161 | Clean up after a build. |
|---|
| | 162 | ================================================================= --> |
|---|
| | 163 | <target name="cleanup"> |
|---|
| | 164 | <delete dir="${edu.rpi.cmt.access.empty.dir}" /> |
|---|
| | 165 | </target> |
|---|
| | 166 | |
|---|
| | 167 | <!-- ========================== Base build Targets =================== |
|---|
| | 168 | Here we have one target building the classes and interfaces that make |
|---|
| | 169 | up the access control suite. |
|---|
| | 170 | ================================================================= --> |
|---|
| | 171 | |
|---|
| | 172 | <target name="clean-build" depends="clean,build" |
|---|
| | 173 | description="Clean and compile access control classes"/> |
|---|
| | 174 | |
|---|
| | 175 | <target name="clean-build-all" depends="clean,build-all" |
|---|
| | 176 | description="Clean and compile access control classes"/> |
|---|
| | 177 | |
|---|
| | 178 | <target name="build" depends="init,build-source,cleanup" |
|---|
| | 179 | description="Compile access control classes"/> |
|---|
| | 180 | |
|---|
| | 181 | <target name="build-all" depends="build" |
|---|
| | 182 | description="Compile access control classes"/> |
|---|