Revision 3034
Added by perry over 17 years ago
build.xml | ||
---|---|---|
48 | 48 |
<condition property="enable.ecogrid"> |
49 | 49 |
<equals arg1="${install.ecogrid}" arg2="true" /> |
50 | 50 |
</condition> |
51 |
|
|
52 |
<!-- Determine if geoserver and spatial options are to be enabled --> |
|
53 |
<condition property="enable.spatial"> |
|
54 |
<equals arg1="${install.spatial}" arg2="true" /> |
|
55 |
</condition> |
|
51 | 56 |
|
52 | 57 |
<target name="check-db"> |
53 | 58 |
<condition property="use-oracle"> |
... | ... | |
159 | 164 |
<include name="msbase.jar"/> |
160 | 165 |
<include name="msutil.jar"/> |
161 | 166 |
<include name="mssqlserver.jar"/> |
167 |
</fileset> |
|
168 |
|
|
169 |
<!-- Include geoserver, geotools, et. al. --> |
|
170 |
<fileset dir="lib/spatial/geoserver/WEB-INF/lib"> |
|
171 |
<include name="*.jar"/> |
|
162 | 172 |
</fileset> |
173 |
<pathelement location="lib/spatial/geoserver/WEB-INF/classes"/> |
|
174 |
|
|
163 | 175 |
</path> |
164 | 176 |
|
165 | 177 |
<!-- It is less likely you'll need to make any changes from here down, |
... | ... | |
770 | 782 |
</sql> |
771 | 783 |
</target> |
772 | 784 |
|
785 |
<target name="install-spatial" depends="jar,clientjar,harvesterjar" if="enable.spatial" |
|
786 |
description="Installs spatial option for metacat"> |
|
787 |
|
|
788 |
<property name="spatial.dir" value="./lib/spatial"/> |
|
789 |
<property name="spatial.geoserver.dir" value="${spatial.dir}/geoserver"/> |
|
790 |
<property name="spatial.webinf-mods" value="${spatial.dir}/WEB-INF"/> |
|
791 |
|
|
792 |
<!-- Copy geoserver libs into ${war.lib} --> |
|
793 |
<copy todir="${war.lib}" filtering="no"> |
|
794 |
<fileset dir="${spatial.geoserver.dir}/WEB-INF/lib"> |
|
795 |
<include name="**"/> |
|
796 |
</fileset> |
|
797 |
</copy> |
|
798 |
|
|
799 |
<!-- Copy everything in geoservers WEB-INF (except the libs) into ${war.webinf} --> |
|
800 |
<copy todir="${war.webinf}" filtering="no"> |
|
801 |
<fileset dir="${spatial.geoserver.dir}/WEB-INF"> |
|
802 |
<exclude name="lib/**"/> |
|
803 |
<exclude name="web.xml"/> |
|
804 |
</fileset> |
|
805 |
</copy> |
|
806 |
|
|
807 |
<!-- Copy the rest of the geoserver codebase into ${war.context} --> |
|
808 |
<copy todir="${war.context}" filtering="no"> |
|
809 |
<fileset dir="${spatial.geoserver.dir}"> |
|
810 |
<exclude name="WEB-INF/**"/> |
|
811 |
<exclude name="index.jsp"/> |
|
812 |
</fileset> |
|
813 |
</copy> |
|
814 |
|
|
815 |
<!-- Copy the geoserver index.jsp but rename it to avoid conflicting w/metcat --> |
|
816 |
<copy file="${spatial.geoserver.dir}/WEB-INF/pages/index.jsp" |
|
817 |
tofile="${war.context}/geoserver.jsp" |
|
818 |
overwrite="true" |
|
819 |
filtering="no"/> |
|
820 |
|
|
821 |
<!-- Copy the geoserver/metacat combined web.xml into ${build.war}/web.xml --> |
|
822 |
<copy file="${spatial.webinf-mods}/web.xml.combined" |
|
823 |
tofile="${build.war}/web.xml" |
|
824 |
overwrite="true" |
|
825 |
filtering="no"/> |
|
826 |
|
|
827 |
<!-- Copy the rest of the modified geoserver web-inf files |
|
828 |
<copy todir="${war.webinf}" filtering="no"> |
|
829 |
<fileset dir="${spatial.webinf-mods}"> |
|
830 |
<exclude name="web.xml.combined"/> |
|
831 |
</fileset> |
|
832 |
</copy> --> |
|
833 |
|
|
834 |
</target> |
|
835 |
|
|
836 |
|
|
773 | 837 |
<target name="install" depends="install-ecogrid" description="* Full Install *"> |
774 | 838 |
<mkdir dir="${datafilepath}" /> |
775 | 839 |
<mkdir dir="${inlinedatafilepath}" /> |
... | ... | |
927 | 991 |
<echo message="Install Skin completed." /> |
928 | 992 |
</target> |
929 | 993 |
|
930 |
<target name="war" depends="warPrepare,warMSSQL" |
|
994 |
<target name="war" depends="warPrepare,warMSSQL,install-spatial"
|
|
931 | 995 |
description="Create a web archive (WAR) for servlet deployment"> |
932 | 996 |
<mkdir dir="${dist.dir}" /> |
933 | 997 |
<war destfile="${dist.dir}/${metacat.context}.war" |
... | ... | |
996 | 1060 |
<exclude name="lsid_conf/**"/> |
997 | 1061 |
<exclude name="LiveMap_30/**"/> |
998 | 1062 |
<exclude name="skin.configs/**"/> |
1063 |
<exclude name="spatial/geoserver/**"/> |
|
1064 |
<exclude name="spatial/WEB-INF/**"/> |
|
999 | 1065 |
</fileset> |
1000 | 1066 |
</copy> |
1001 | 1067 |
</target> |
Also available in: Unified diff
initial import of changes to metacat source and config files to support spatial option