Revision 4369
Added by daigle about 16 years ago
build.xml | ||
---|---|---|
709 | 709 |
</war> |
710 | 710 |
</target> |
711 | 711 |
|
712 |
<target name="warPrepare" depends="jar,clientjar,harvesterjar" |
|
712 |
<target name="warPrepare" depends="cgiPrepare,jar,clientjar,harvesterjar"
|
|
713 | 713 |
description="Prepare files for creating a web archive (WAR)"> |
714 | 714 |
|
715 | 715 |
<property name="war.lib" value="${build.war}/lib" /> |
716 | 716 |
<property name="war.webinf" value="${build.war}/WEB-INF" /> |
717 | 717 |
<property name="war.context" value="${build.war}/${metacat.context}" /> |
718 | 718 |
<property name="war.webinf.sql" value="${war.webinf}/sql" /> |
719 |
<property name="war.context.cgi" value="${war.context}/cgi-bin" /> |
|
719 | 720 |
<property name="war.context.docs" value="${war.context}/docs" /> |
720 |
<property name="war.context.cgi" value="${war.context}/cgi-bin" /> |
|
721 | 721 |
<property name="war.context.temp" value="${war.context}/temp" /> |
722 | 722 |
<property name="war.context.templates" value="${war.context}${style-common-relpath}/templates" /> |
723 | 723 |
<mkdir dir="${war.lib}" /> |
724 | 724 |
<mkdir dir="${war.webinf}" /> |
725 | 725 |
<mkdir dir="${war.context}" /> |
726 | 726 |
<mkdir dir="${war.webinf.sql}" /> |
727 |
<mkdir dir="${war.context.cgi}" /> |
|
727 | 728 |
<mkdir dir="${war.context.docs}" /> |
728 |
<mkdir dir="${war.context.cgi}" /> |
|
729 | 729 |
<mkdir dir="${war.context.temp}" /> |
730 | 730 |
<mkdir dir="${war.context.templates}" /> |
731 | 731 |
|
... | ... | |
807 | 807 |
<include name="**/*.sql"/> |
808 | 808 |
</fileset> |
809 | 809 |
</copy> |
810 |
|
|
811 |
<!-- registry cgi section -->
|
|
812 |
<copy file="src/perl/register-dataset.cgi" todir="${war.context.cgi}"/>
|
|
813 |
<!-- chmod file="${war.context.cgi}/register-dataset.cgi" perm="ugo+x" / -->
|
|
814 |
|
|
815 |
<!-- TODO SCW: set the permissions on this folder to be writable by the apache user -->
|
|
816 |
<!-- TODO SCW: use relative paths to grab these instead of copying to tmp,
|
|
810 |
|
|
811 |
<copy file="src/perl/register-dataset.cgi" todir="${war.context.cgi}"/>
|
|
812 |
<copy file="src/perl/ldapweb.cgi" todir="${war.context.cgi}" />
|
|
813 |
<copy file="src/perl/Metacat/blib/lib/Metacat.pm" todir="${war.lib}" />
|
|
814 |
|
|
815 |
<!-- registry cgi section -->
|
|
816 |
<!-- TODO SCW: use relative paths to grab these instead of copying to tmp,
|
|
817 | 817 |
used in readDocumentFromMetacat --> |
818 |
<!-- TODO MCD copy temp files to actual location using config util?? --> |
|
819 |
<copy todir="${war.context.temp}" filtering="yes"> |
|
820 |
<fileset dir="lib/style/common/emlb6toeml2"> |
|
821 |
<include name="*.xsl"/> |
|
822 |
<include name="*.xml"/> |
|
823 |
</fileset> |
|
824 |
</copy> |
|
825 |
|
|
826 |
<!-- ldap cgi section --> |
|
827 |
<copy file="src/perl/ldapweb.cgi" todir="${war.context.cgi}" /> |
|
828 |
<!-- chmod file="${war.context.cgi}/ldapweb.cgi" perm="ugo+x" / --> |
|
829 |
<copy todir="${war.context.templates}"> |
|
830 |
<fileset dir="lib/style/common/templates"> |
|
831 |
<!-- SCW: Copy all files --> |
|
832 |
</fileset> |
|
833 |
</copy> |
|
834 |
</target> |
|
818 |
<!-- TODO MCD copy temp files to actual location using config util?? --> |
|
819 |
<copy todir="${war.context.temp}" filtering="yes"> |
|
820 |
<fileset dir="lib/style/common/emlb6toeml2"> |
|
821 |
<include name="*.xsl"/> |
|
822 |
<include name="*.xml"/> |
|
823 |
</fileset> |
|
824 |
</copy> |
|
825 |
<available file="lib/style/common/emlb6toeml2" type="dir" |
|
826 |
property="styles.not.needed"/> |
|
827 |
|
|
828 |
<!-- ldap cgi section --> |
|
829 |
<copy todir="${war.context.templates}"> |
|
830 |
<fileset dir="lib/style/common/templates"> |
|
831 |
<!-- SCW: Copy all files --> |
|
832 |
</fileset> |
|
833 |
</copy> |
|
834 |
</target> |
|
835 |
|
|
836 |
<target name="cgiPrepare"> |
|
837 |
<exec dir="src/perl/Metacat/" command="perl" > |
|
838 |
<arg value="Makefile.PL" /> |
|
839 |
</exec> |
|
840 |
<exec dir="src/perl/Metacat/" command="make" /> |
|
841 |
</target> |
|
835 | 842 |
|
836 | 843 |
<target name="getConversionXSL" depends="prepare" |
837 | 844 |
unless="styles.not.needed" |
... | ... | |
1052 | 1059 |
<fileset dir="${schema-cvsrelpath}"> |
1053 | 1060 |
<include name="eml-*/*.xsd" /> |
1054 | 1061 |
</fileset> |
1062 |
<fileset dir="${ecogrid-dir}"> |
|
1063 |
<include name="build.properties" /> |
|
1064 |
<include name="buildfiles/metacatImpl.xml" /> |
|
1065 |
</fileset> |
|
1055 | 1066 |
</delete> |
1056 | 1067 |
</target> |
1057 | 1068 |
|
Also available in: Unified diff
build Metacat.pm from within ant. Deploy cgi files to lib dir inside metacat.