Revision 4648
Added by daigle almost 16 years ago
build.xml | ||
---|---|---|
210 | 210 |
<property name="ver.dir" value="${dist.dir}/${name}-${release}"/> |
211 | 211 |
<property name="ver.src" value="${ver.dir}/src"/> |
212 | 212 |
<property name="util.dir" value="${dist.dir}/${util-module}"/> |
213 |
<property name="test.dir" value="${dist.dir}/test"/> |
|
213 | 214 |
<!-- directories for creating a Harvest List Editor distribution --> |
214 | 215 |
<property name="dist.dir.hle" value="disthle"/> |
215 | 216 |
<property name="ver.dir.hle" value="${dist.dir.hle}/harvest-list-editor-${release}"/> |
... | ... | |
1122 | 1123 |
<mkdir dir="${ver.dir}"/> |
1123 | 1124 |
<copy todir="${ver.dir}"> |
1124 | 1125 |
<fileset dir="." |
1125 |
excludes="**/CVS* **/.#* src/** test/** build/** docs/** ${dist.dir}/** ${dist.dir.hle}/**"/> |
|
1126 |
excludes="**/CVS* **/.#* src/** test/** build/** docs/** ${dist.dir}/** ${dist.dir.hle}/** metacat*.tar.gz metacat*.tar metacat*.zip"/>
|
|
1126 | 1127 |
</copy> |
1127 | 1128 |
<copy todir="${ver.dir}" file="build.xml"/> |
1128 | 1129 |
<copy todir="${ver.dir}" file="build.properties"/> |
... | ... | |
1139 | 1140 |
<copy todir="${ver.dir}/src"> |
1140 | 1141 |
<fileset dir="${build.dir}/src"/> |
1141 | 1142 |
</copy> |
1142 |
<!-- copy loaddtdschemal.sql form src dir(which has the server token to ver.dir/src--> |
|
1143 |
<!-- copy todir="${ver.dir}/src" file="${srcdir}/loaddtdschema.sql" overwrite="yes" filtering="no"/ --> |
|
1144 |
<!-- copy todir="${ver.dir}/src" file="${srcdir}/upgrade-db-to-1.5.sql" overwrite="yes" filtering="no"/ --> |
|
1145 |
<!-- |
|
1146 |
<delete dir="./${ver.dir}/${build.dir}"/> |
|
1147 |
<delete dir="./${ver.dir}/dist"/> |
|
1148 |
--> |
|
1149 |
<!-- delete file="./${name}-${release}.zip"/> |
|
1150 |
<zip zipfile="./${name}-${release}.zip" basedir="${dist.dir}" excludes="${name}-${release}/src/**, ${name}-${release}/build/src/**"/> |
|
1151 |
<delete file="./${name}-${release}.tar.gz" /> |
|
1152 |
<tar tarfile="./${name}-${release}.tar" basedir="${dist.dir}" excludes="${name}-${release}/src/**, ${name}-${release}/build/src/**"/> |
|
1153 |
<gzip zipfile="./${name}-${release}.tar.gz" |
|
1154 |
src="./${name}-${release}.tar"/> |
|
1155 |
<delete file="./${name}-${release}.tar" / --> |
|
1143 |
|
|
1144 |
<mkdir dir="${ver.dir}/tests/servertestfiles"/> |
|
1145 |
<copy todir="${ver.dir}/test/servertestfiles"> |
|
1146 |
<fileset dir="./test/servertestfiles"/> |
|
1147 |
</copy> |
|
1156 | 1148 |
</target> |
1157 | 1149 |
|
1158 | 1150 |
<target name="distbin" depends="build-metacat,war-lsid,war" description="prepares a binary distribution"> |
... | ... | |
1191 | 1183 |
<delete file="${ver.dir}/lib/utilities.jar"/> |
1192 | 1184 |
|
1193 | 1185 |
<delete file="./${name}-src-${release}.zip"/> |
1194 |
<zip zipfile="./${name}-src-${release}.zip" basedir="${dist.dir}"/> |
|
1186 |
<zip zipfile="./${name}-src-${release}.zip" |
|
1187 |
basedir="${dist.dir}" |
|
1188 |
excludes="metacat*.tar.gz,metacat*.zip"/> |
|
1195 | 1189 |
<delete file="./${name}-src-${release}.tar.gz" /> |
1196 |
<tar tarfile="./${name}-src-${release}.tar" basedir="${dist.dir}"/> |
|
1190 |
<tar tarfile="./${name}-src-${release}.tar" |
|
1191 |
basedir="${dist.dir}" |
|
1192 |
excludes="metacat*.tar.gz,metacat*.zip"/> |
|
1197 | 1193 |
<gzip zipfile="./${name}-src-${release}.tar.gz" |
1198 | 1194 |
src="./${name}-src-${release}.tar"/> |
1199 |
<delete file="./${name}-src-${release}.tar" /> |
|
1200 |
<delete dir="${dist.dir}"/> |
|
1195 |
<!-- delete file="./${name}-src-${release}.tar" />
|
|
1196 |
<delete dir="${dist.dir}"/ -->
|
|
1201 | 1197 |
</target> |
1202 | 1198 |
|
1203 | 1199 |
<target name="stylesheettest"> |
Also available in: Unified diff
Add test files to source distribution. Remove old tar and zip files from the distribution.