Project

General

Profile

« Previous | Next » 

Revision 4720

Added by daigle almost 16 years ago

change dev-install target to be install target

View differences:

build.properties
5 5
metacat.version=1.9.0
6 6

  
7 7
#This is for packaging purposes.  leave it blank for final production release.
8
metacat.releaseCandidate=-2
8
metacat.releaseCandidate=-6
9 9

  
10 10
# Tomcat dev deployment directory
11 11
# build.tomcat.dir=/usr/local/tomcat
12 12
build.tomcat.dir=/usr/local/devtools/jakarta-tomcat
13 13

  
14
# dev-install ant target uses this to determine where to drop 
15
# the war file in a dev installation.  Test classes will use
14
# install ant target uses this to determine where to drop 
15
# the war file in an installation.  Test classes will use
16 16
# this value to find metacat.properties
17
dev.deploy.dir=/usr/local/devtools/jakarta-tomcat/webapps
18
# dev.deploy.dir=/usr/local/tomcat/webapps
17
app.deploy.dir=/usr/local/devtools/jakarta-tomcat/webapps
19 18

  
20 19
# CVS access to retrieve latest EML, seek and utilities 
21 20
cvsroot=:ext:${env.USER}@cvs.ecoinformatics.org:/cvs
build.xml
55 55
      <property name="debug"               value="on" />
56 56
      <property name="morphosourcedir"     value="../morpho" />
57 57
      <property name="utilitiesdir"        value="../utilities" />
58
      <property name="installdir"        value="${dev.deploy.dir}/${metacat.context}" />
58
      <property name="installdir"        value="${app.deploy.dir}/${metacat.context}" />
59 59

  
60 60
      <echo>*********** set jsdk to ${jsdk}</echo>
61 61
  </target>
......
568 568

  
569 569
    </target>
570 570

  
571
   <target name="dev-install" depends="clean, build-metacat" description="* Full Install For Development *">
572
     <copy file="${dist.dir}/${metacat.context}.war" todir="${dev.deploy.dir}"/>
573
   	 <delete dir="${dev.deploy.dir}/${metacat.context}" />
571
   <target name="install" depends="clean, build-metacat" description="* Full Install For Development *">
572
     <copy file="${dist.dir}/${metacat.context}.war" todir="${app.deploy.dir}"/>
573
   	 <delete dir="${app.deploy.dir}/${metacat.context}" />
574 574
   	   <tstamp>
575 575
   	   	 <format property="NOW" pattern="MM/dd/yyyy hh:mm:ss aa"/>
576 576
   	   </tstamp>
577 577
   	 <echo>Dev install completed at ${NOW}</echo> 	   	
578 578
   </target>
579 579

  
580
<!--
581
   <target name="install" depends="install-ecogrid" description="* Full Install *">
582
       <mkdir dir="${datafilepath}" />
583
       <mkdir dir="${inlinedatafilepath}" />
584
       <chmod dir="${datafilepath}" perm="ug+w" />
585
       <mkdir dir="${temp-dir}"/>
586
       <chmod dir="${temp-dir}" perm="ug+w" />
587
       <copy file="${dist.dir}/${metacat.context}.war" todir="${deploy.dir}"/>
588
   	   <echo>If you enable ecogrid installation, please run "ant deploy-ecogrid" when installation or upgrade is done</echo> 
589
   </target>
590
-->
591 580
   <target name="build-metacat" depends="install-ecogrid"
592 581
   	            description="Build Metacat">
593 582
   </target>
......
631 620
   </target>
632 621
	
633 622
   <target name="clean-ecogrid-server-config-wsdd" depends="init" description="Automately generate wsdd for ecogrid service">
634
      <delete file="${dev.deploy.dir}/${metacat.context}/WEB-INF/server-config.wsdd"/>
623
      <delete file="${app.deploy.dir}/${metacat.context}/WEB-INF/server-config.wsdd"/>
635 624
   </target>
636 625

  
637 626
   <!-- target name="install-registry" depends="init,getConversionXSL"
......
1018 1007
   </target>
1019 1008

  
1020 1009
   <!-- run this target, we need to check out a another morpho souce dir was checked out. -->
1021
   <target name="nettest" depends="dev-install"
1010
   <target name="nettest" depends="install"
1022 1011
            description="compiles and runs the metacatnettest code">
1023 1012

  
1024 1013
      <echo>***********************************
......
1413 1402
    <target name="deploy-lsid"
1414 1403
            depends="war-lsid"
1415 1404
            description="Deploy LSID war to servlet container">
1416
        <delete dir="${dev.deploy.dir}/${authority.context}" />
1417
        <delete file="${dev.deploy.dir}/${authority.context}.war" />
1418
        <mkdir dir="${dev.deploy.dir}" />
1419
        <copy todir="${dev.deploy.dir}">
1405
        <delete dir="${app.deploy.dir}/${authority.context}" />
1406
        <delete file="${app.deploy.dir}/${authority.context}.war" />
1407
        <mkdir dir="${app.deploy.dir}" />
1408
        <copy todir="${app.deploy.dir}">
1420 1409
            <fileset dir="${dist.dir}" />
1421 1410
        </copy>
1422 1411
    </target>

Also available in: Unified diff