Revision 2957
Added by Jing Tao almost 19 years ago
build.xml | ||
---|---|---|
43 | 43 |
<condition property="jsdk" value="${tomcat}/common/lib/servlet-api.jar"> |
44 | 44 |
<equals arg1="${tomcatversion}" arg2="tomcat5" /> |
45 | 45 |
</condition> |
46 |
|
|
46 |
|
|
47 |
<!-- Determine if installed ecogrid --> |
|
48 |
<condition property="enable.ecogrid"> |
|
49 |
<equals arg1="${install.ecogrid}" arg2="true" /> |
|
50 |
</condition> |
|
51 |
|
|
47 | 52 |
<target name="check-db"> |
48 | 53 |
<condition property="use-oracle"> |
49 | 54 |
<equals arg1="${database}" arg2="oracle" /> |
... | ... | |
195 | 200 |
<property name="eml-css" value="eml_xsl.css"/> |
196 | 201 |
<property name="eml-module.default.css" |
197 | 202 |
value="default.css"/> |
203 |
<property name="ecogrid-target-name" value="metacatImpl"/> |
|
198 | 204 |
|
199 | 205 |
<!-- Config for registry variables --> |
200 | 206 |
<property name="scope" value="obfs"/> |
... | ... | |
747 | 753 |
</sql> |
748 | 754 |
</target> |
749 | 755 |
|
750 |
<target name="install" depends="war" description="* Full Install *">
|
|
756 |
<target name="install" depends="install-ecogrid" description="* Full Install *">
|
|
751 | 757 |
<mkdir dir="${datafilepath}" /> |
752 | 758 |
<mkdir dir="${inlinedatafilepath}" /> |
753 | 759 |
<chmod dir="${datafilepath}" perm="ug+w" /> |
... | ... | |
755 | 761 |
<chmod dir="${temp-dir}" perm="ug+w" /> |
756 | 762 |
<copy file="${dist.dir}/${metacat.context}.war" todir="${deploy.dir}"/> |
757 | 763 |
</target> |
764 |
|
|
765 |
<target name="install-ecogrid" depends="war" if="enable.ecogrid" |
|
766 |
description="Install Ecogrid Compentent"> |
|
767 |
<ant antfile="build_new.xml" dir="${ecogrid.dir}" target ="clean" inheritall="false"/> |
|
768 |
<ant antfile="build_new.xml" dir="${ecogrid.dir}" target ="war" inheritall="false"> |
|
769 |
<property name="context" value="${metacat.context}"/> |
|
770 |
<property name="target" value="${ecogrid-target-name}"/> |
|
771 |
</ant> |
|
772 |
<copy file="${ecogrid.dir}/build/${metacat.context}.war" todir="${dist.dir}" overwrite="true"/> |
|
773 |
</target> |
|
758 | 774 |
|
759 | 775 |
<target name="upgrade" depends="install" |
760 | 776 |
description="* Upgrade an existing metacat installation with a new version *"> |
761 | 777 |
<unwar src="${deploy.dir}/${metacat.context}.war" dest="${deploy.dir}/${metacat.context}" /> |
778 |
<echo>Note: If you enable to install ecogrid, please run "ant deploy-ecogrid" now</echo> |
|
762 | 779 |
</target> |
780 |
|
|
781 |
<target name="deploy-ecogrid" depends="init" if="enable.ecogrid" description="Automately generate wsdd for ecogrid service"> |
|
782 |
<ant antfile="build_new.xml" dir="${ecogrid.dir}" target ="deploy" inheritall="false"> |
|
783 |
<property name="context" value="${metacat.context}"/> |
|
784 |
<property name="target" value="${ecogrid-target-name}"/> |
|
785 |
</ant> |
|
786 |
</target> |
|
763 | 787 |
|
764 | 788 |
<target name="install-registry" depends="init,getConversionXSL" |
765 | 789 |
description="Install Registry"> |
... | ... | |
854 | 878 |
<webinf dir="${war.webinf}"/> |
855 | 879 |
</war> |
856 | 880 |
</target> |
881 |
|
|
882 |
|
|
857 | 883 |
|
858 | 884 |
<target name="warPrepare" depends="jar,clientjar,harvesterjar" |
859 | 885 |
description="Prepare files for creating a web archive (WAR)"> |
Also available in: Unified diff
Add target to install ecogrid.