Project

General

Profile

Revision 5625

Added by berkley over 9 years ago

changed property name of the dataone_schema tag. fixed one hard coded bug

View differences:

build.xml
176 176
			value="RELEASE_EML_2_0_0_UPDATE_1" />
177 177
		<property name="eml2_0_1-schema-tag" value="RELEASE_EML_2_0_1" />
178 178
		<property name="eml2_1_0-schema-tag" value="RELEASE_EML_2_1_0" />
179
		<property name="dataone-0.1-schema-tag" value="D1_SCHEMA_0_4" />
179
		<property name="dataone-schema-tag" value="D1_SCHEMA_0_5" />
180 180
		<property name="eml2-style-tag" value="RELEASE_EML_UTILS_0_9_0" />
181 181
		<property name="eml2_0_0namespace"
182 182
			value="eml://ecoinformatics.org/eml-2.0.0" />
......
327 327
		<property name="svn.eml210SchemaUrl"
328 328
			value="https://code.ecoinformatics.org/code/eml/tags/${eml2_1_0-schema-tag}" />
329 329
		<property name="svn.dataone-0.1-schema-url"
330
			value="https://repository.dataone.org/software/cicore/tags/${dataone-0.1-schema-tag}" />
330
			value="https://repository.dataone.org/software/cicore/tags/${dataone-schema-tag}" />
331 331
		<property name="svn.eml2StyleUrl"
332 332
			value="https://code.ecoinformatics.org/code/eml/tags/${eml2-style-tag}" />
333 333

  
......
652 652
	     to have to make a ton of svn calls when you're testing (see getd1schemas) -->
653 653
	<target name="install-dataone" depends="init">
654 654
	  <property name="dataone-shema-dir" value="../cicore/schemas"/>
655
	  <property name="install-dataone-schema-dir" value="${installdir}/schema/D1_SCHEMA_0_1"/>
655
	  <property name="install-dataone-schema-dir" value="${installdir}/schema/${dataone-schema-tag}"/>
656 656
	  <mkdir dir="${install-dataone-schema-dir}"/>
657 657
	  <copy todir="${install-dataone-schema-dir}">
658 658
	    <fileset dir="${dataone-shema-dir}">
......
664 664
	<!-- get the dataone schemas from svn -->
665 665
	<target name="getd1schemas" depends="prepare" 
666 666
		description="Checkout dataone schemas from svn and copy to metacat sandbox">
667
		<delete dir="${build.tmp}/${dataone-0.1-schema-tag}"/>
667
		<delete dir="${build.tmp}/${dataone-schema-tag}"/>
668 668
        <svn>
669 669
            <export srcUrl="${svn.dataone-0.1-schema-url}"
670
                destPath="${build.tmp}/${dataone-0.1-schema-tag}" />
670
                destPath="${build.tmp}/${dataone-schema-tag}" />
671 671
        </svn>
672
        <mkdir dir="lib/schema/${dataone-0.1-schema-tag}" />
673
        <copy todir="lib/schema/${dataone-0.1-schema-tag}" filtering="yes">
674
            <fileset dir="${build.tmp}/${dataone-0.1-schema-tag}">
672
        <mkdir dir="lib/schema/${dataone-schema-tag}" />
673
        <copy todir="lib/schema/${dataone-schema-tag}" filtering="yes">
674
            <fileset dir="${build.tmp}/${dataone-schema-tag}">
675 675
                <include name="*.xsd" />
676 676
            </fileset>
677 677
        </copy>

Also available in: Unified diff