Project

General

Profile

« Previous | Next » 

Revision 2965

Added by Jing Tao almost 19 years ago

Add code for distribution to include ecogrid component.

View differences:

build.xml
200 200
      <property name="eml-css"             value="eml_xsl.css"/>
201 201
      <property name="eml-module.default.css"
202 202
                                           value="default.css"/>
203
   	  <property name="ecogrid-target-name" value="metacatImpl"/>
204

  
203
   	  
205 204
      <!-- Config for registry variables -->
206 205
      <property name="scope"               value="obfs"/>
207 206
      <property name="responseForm"        value="genericResponse.tmpl"/>
......
350 349
	  <!-- directories for creating a Harvest List Editor distribution -->
351 350
      <property name="dist.dir.hle" value="disthle"/>
352 351
      <property name="ver.dir.hle" value="${dist.dir.hle}/harvest-list-editor-${release}"/>
352
   	  
353
   	  
354
   	  <property name="ecogrid-target-name" value="metacatImpl"/>
355
   	  <property name="ecogrid-module-dest-dir" value =".."/>
356
   	  <property name="ecogrid-module" value="seek/projects/ecogrid"/>
357
   	  <property name="ecogrid-dist-dir" value="${dist.dir}/${ecogrid-module}"/>
358
   	  <property name="ecogrid-dir" value="${ecogrid-module-dest-dir}/${ecogrid-module}"/>
353 359

  
354 360
      <property name="package.home" value="edu/ucsb/nceas/metacat" />
355 361
      <condition property="utilities.required">
......
365 371
          <not><available file="lib/dtd/eml-dataset-2.0.0beta6.dtd"/></not>
366 372
        </or>
367 373
      </condition>
374
   	  
375
      <condition property="ecogrid.required">
376
      	   <or>
377
             <not><available file="${ecogrid-dir}/build.properties"/></not>
378
             <not><available file="${ecogrid-dir}/buildfiles/metacatImpl.xml"/></not>
379
           </or>
380
      </condition>
368 381

  
369 382
   </target>
370 383

  
......
763 776
       <copy file="${dist.dir}/${metacat.context}.war" todir="${deploy.dir}"/>
764 777
   </target>
765 778
	
766
   <target name="install-ecogrid" depends="war" if="enable.ecogrid"
779
   <target name="install-ecogrid" depends="war, get-ecogrid" if="enable.ecogrid"
767 780
			    description="Install Ecogrid Compentent">
768
   	  <copyfile src="lib/metacat.url" dest="${ecogrid.dir}/conf/MetacatImpl/classes/metacat.properties" forceoverwrite="true" filtering="yes"/>
769
   	  <ant antfile="build_new.xml" dir="${ecogrid.dir}" target ="clean" inheritall="false"/>
770
   	  <ant antfile="build_new.xml" dir="${ecogrid.dir}" target ="war" inheritall="false">
781
   	  <copyfile src="lib/metacat.url" dest="${ecogrid-dir}/conf/MetacatImpl/classes/metacat.properties" forceoverwrite="true" filtering="yes"/>
782
   	  <ant antfile="build_new.xml" dir="${ecogrid-dir}" target ="clean" inheritall="false"/>
783
   	  <ant antfile="build_new.xml" dir="${ecogrid-dir}" target ="war" inheritall="false">
771 784
   	     <property name="context" value="${metacat.context}"/>
772 785
   	     <property name="target" value="${ecogrid-target-name}"/>
786
   	     <property name="metacat.dir" value="${metacat.dir}"/>
773 787
   	  </ant>
774
   	  <copy file="${ecogrid.dir}/build/${metacat.context}.war" todir="${dist.dir}" overwrite="true"/>
788
   	  <copy file="${ecogrid-dir}/build/${metacat.context}.war" todir="${dist.dir}" overwrite="true"/>
775 789
   </target>
776

  
790
   
791
   <target name="get-ecogrid" depends="init" if="ecogrid.required" description="Check out ecogrid module">
792
	<echo>Enter CVS password: </echo>
793
	     <cvs cvsRoot="${cvsroot}"
794
	          package="${ecogrid-module}" dest="${ecogrid-module-dest-dir}"/>
795
   </target>
796
	
797
   	
777 798
   <target name="upgrade" depends="install"
778 799
          description="* Upgrade an existing metacat installation with a new version *">
779 800
       <unwar src="${deploy.dir}/${metacat.context}.war" dest="${deploy.dir}/${metacat.context}" />
......
781 802
   </target>
782 803
	
783 804
   <target name="deploy-ecogrid" depends="init" if="enable.ecogrid" description="Automately generate wsdd for ecogrid service">
784
   	 <ant antfile="build_new.xml" dir="${ecogrid.dir}" target ="deploy" inheritall="false">
805
   	 <ant antfile="build_new.xml" dir="${ecogrid-dir}" target ="deploy" inheritall="false">
785 806
   	   	 <property name="context" value="${metacat.context}"/>
786 807
   	   	 <property name="target" value="${ecogrid-target-name}"/>
808
   	     <property name="metacat.dir" value="${metacat.dir}"/>
787 809
   	 </ant>
788 810
   </target>
789 811

  
......
1174 1196
   </target>
1175 1197

  
1176 1198
   <target name="dist"
1177
       depends="geteml,jar,protocol,jdoc,getConversionXSL,getutilities"
1199
       depends="geteml,get-ecogrid,jar,protocol,jdoc,getConversionXSL,getutilities"
1178 1200
            description="prepares a full release distribution">
1179 1201
      <mkdir dir="${dist.dir}"/>
1180 1202
      <delete dir="${ver.dir}" />
......
1224 1246
      <copy todir="${util.dir}">
1225 1247
        <fileset dir="${build.tmp}/utilities" excludes="**/CVS*" />
1226 1248
      </copy>
1249
  	  
1250
  	  <mkdir dir="${ecogrid-dist-dir}"/>
1251
  	  <copy todir="${ecogrid-dist-dir}">
1252
  	        <fileset dir="${ecogrid-dir}" excludes="**/CVS*" />
1253
  	  </copy>
1227 1254

  
1228 1255
      <delete file="./${name}-src-${release}.zip"/>
1229 1256
      <zip zipfile="./${name}-src-${release}.zip" basedir="${dist.dir}"/>

Also available in: Unified diff