Project

General

Profile

« Previous | Next » 

Revision 5328

Added by Matt Jones about 14 years ago

Add support for getting the DataONE schemas from SVN and copying them into metacat's schema catalog. Still need to update the oracle scripts as well.

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_1" />
179 180
		<property name="eml2-style-tag" value="RELEASE_EML_UTILS_0_9_0" />
180 181
		<property name="eml2_0_0namespace"
181 182
			value="eml://ecoinformatics.org/eml-2.0.0" />
......
325 326
			value="https://code.ecoinformatics.org/code/eml/tags/${eml2_0_1-schema-tag}" />
326 327
		<property name="svn.eml210SchemaUrl"
327 328
			value="https://code.ecoinformatics.org/code/eml/tags/${eml2_1_0-schema-tag}" />
329
		<property name="svn.dataone-0.1-schema-url"
330
			value="https://repository.dataone.org/software/cicore/tags/${dataone-0.1-schema-tag}" />
328 331
		<property name="svn.eml2StyleUrl"
329 332
			value="https://code.ecoinformatics.org/code/eml/tags/${eml2-style-tag}" />
330 333

  
......
436 439
		</javac>
437 440
	</target>
438 441

  
439
	<target name="jar" depends="compile,geteml"
442
	<target name="jar" depends="compile,geteml,getd1schemas"
440 443
		description="Compiles and jars metacat java code to metacat.jar in build dir ">
441 444

  
442 445
		<delete file="${build.dir}/${name}.jar" />
......
645 648
		</antcall>
646 649
	</target>
647 650

  
651
	<target name="getd1schemas" depends="prepare" 
652
		description="Checkout dataone schemas from svn and copy to metacat sandbox">
653
        <svn>
654
            <export srcUrl="${svn.dataone-0.1-schema-url}"
655
                destPath="${build.tmp}/${dataone-0.1-schema-tag}" />
656
        </svn>
657
        <mkdir dir="lib/schema/${dataone-0.1-schema-tag}" />
658
        <copy todir="lib/schema/${dataone-0.1-schema-tag}" filtering="yes">
659
            <fileset dir="${build.tmp}/${dataone-0.1-schema-tag}">
660
                <include name="*.xsd" />
661
            </fileset>
662
        </copy>
663
    </target>
664

  
648 665
	<target name="copyxsl"
649 666
		description="Copies xsl stylesheets from checkout in build/tmp to your metacat sandbox">
650 667

  
......
1247 1264
	</target>
1248 1265

  
1249 1266
	<target name="dist"
1250
		depends="geteml,get-ecogrid,jar,protocol,jdoc,getConversionXSL,getutilities"
1267
		depends="geteml,getd1schemas,get-ecogrid,jar,protocol,jdoc,getConversionXSL,getutilities"
1251 1268
		description="prepares a full release distribution">
1252 1269
		<mkdir dir="${dist.dir}" />
1253 1270
		<delete dir="${ver.dir}" />

Also available in: Unified diff