Project

General

Profile

« Previous | Next » 

Revision 2401

Added by Duane Costa over 19 years ago

Modify harvestListEditorDist target to create the Harvest List Editor distribution using naming conventions that are consistent with other KNB releases.

View differences:

build.xml
330 330
      <property name="dist.dir" value="dist"/>
331 331
      <property name="ver.dir" value="${dist.dir}/${name}-${release}"/>
332 332
      <property name="ver.src" value="${ver.dir}/src"/>
333
	  <!-- directories for creating a Harvest List Editor distribution -->
334
      <property name="dist.dir.hle" value="disthle"/>
335
      <property name="ver.dir.hle" value="${dist.dir.hle}/harvest-list-editor-${release}"/>
333 336

  
334 337
      <property name="package.home" value="edu/ucsb/nceas/metacat" />
335 338
      <condition property="utilities.required">
......
432 435

  
433 436
   <target name="harvestListEditorDist" depends="harvesterjar"
434 437
           description="Prepares a distribution of the Harvest List Editor tool">
435
       <delete dir="${build.tmp}/HLE"/>
436
       <mkdir dir="${build.tmp}/HLE"/>
437
       <copy todir="${build.tmp}/HLE" file="${build.dir}/harvester.jar"/>
438
       <copy todir="${build.tmp}/HLE" file="lib/xercesImpl.jar"/>
439
       <copy todir="${build.tmp}/HLE" file="lib/harvester/harvestList.xsd"/>
440
       <copy todir="${build.tmp}/HLE" file="lib/harvester/harvestListEditor.bat"/>
441
       <copy todir="${build.tmp}/HLE" file="lib/harvester/harvestListEditor.sh"/>
442
       <delete file="./harvestListEditor.zip"/>
443
       <zip zipfile="./harvestListEditor.zip" basedir="${build.tmp}/HLE" />
444
       <delete file="./harvestListEditor.tar.gz" />
445
       <tar tarfile="./harvestListEditor.tar" basedir="${build.tmp}/HLE" />
446
       <gzip zipfile="./harvestListEditor.tar.gz"
447
             src="./harvestListEditor.tar"/>
448
       <delete file="./harvestListEditor.tar" />
438
       <mkdir dir="${dist.dir.hle}"/>
439
       <delete dir="${ver.dir.hle}" />
440
       <mkdir dir="${ver.dir.hle}"/>
441
       <copy todir="${ver.dir.hle}" file="${build.dir}/harvester.jar"/>
442
       <copy todir="${ver.dir.hle}" file="lib/xercesImpl.jar"/>
443
       <copy todir="${ver.dir.hle}" file="lib/harvester/harvestList.xsd"/>
444
       <copy todir="${ver.dir.hle}" file="lib/harvester/harvestListEditor.bat"/>
445
       <copy todir="${ver.dir.hle}" file="lib/harvester/harvestListEditor.sh"/>
446
       <delete file="./harvest-list-editor-${release}.zip"/>
447
       <zip zipfile="./harvest-list-editor-${release}.zip" basedir="${ver.dir.hle}" />
448
       <delete file="./harvest-list-editor-${release}.tar.gz" />
449
       <tar tarfile="./harvest-list-editor-${release}.tar" basedir="${ver.dir.hle}" />
450
       <gzip zipfile="./harvest-list-editor-${release}.tar.gz"
451
             src="./harvest-list-editor-${release}.tar"/>
452
       <delete file="./harvest-list-editor-${release}.tar" />
449 453
   </target>
450 454

  
451 455
   <target  name="geteml" depends="getemlpre2,geteml2+" if="eml.required"
......
981 985
      <mkdir dir="${ver.dir}"/>
982 986
      <copy todir="${ver.dir}">
983 987
        <fileset dir="."
984
            excludes="**/CVS* **/.#* src/** test/** build/** docs/** ${dist.dir}/**"/>
988
            excludes="**/CVS* **/.#* src/** test/** build/** docs/** ${dist.dir}/** ${dist.dir.hle}/**"/>
985 989
      </copy>
986 990
      <copy todir="${ver.dir}" file="build.xml"/>
987 991
      <copy todir="${ver.dir}" file="build.properties"/>

Also available in: Unified diff