Project

General

Profile

« Previous | Next » 

Revision 5176

Added by daigle almost 15 years ago

Get all eml code from svn instead of cvs

View differences:

build.xml
265 265
			value="https://code.ecoinformatics.org/code/utilities/${utilities-tag}" />
266 266
		<property name="svn.ecogridUrl"
267 267
			value="https://code.ecoinformatics.org/code/seek/trunk/projects/ecogrid/" />
268
		<!--  property name="svn.utilitiesExportPath" value="${knbdir}" / -->
268
		<property name="svn.emlBetaUrl"
269
			value="https://code.ecoinformatics.org/code/eml/branches/${eml-beta-tag}" />
270
		<property name="svn.eml200SchemaUrl"
271
			value="https://code.ecoinformatics.org/code/eml/tags/${eml2_0_0-schema-tag}" />
272
		<property name="svn.eml201SchemaUrl"
273
			value="https://code.ecoinformatics.org/code/eml/tags/${eml2_0_1-schema-tag}" />
274
		<property name="svn.eml210SchemaUrl"
275
			value="https://code.ecoinformatics.org/code/eml/tags/${eml2_1_0-schema-tag}" />
276
		<property name="svn.eml2StyleUrl"
277
			value="https://code.ecoinformatics.org/code/eml/tags/${eml2-style-tag}" />
269 278

  
270 279
		<!-- load the svn task -->
271 280
		<path id="svn.classpath">
......
401 410
	<target name="getpeerutilities" depends="prepare"
402 411
		if="peer.utilities.required"
403 412
		description="Checks utilities out of svn and copies it to your utilitiesdir if it does not already exist">
404
		<echo message="Exporting utiities files from svn repository:" />
405
		<!-- input message="Please enter svn repo username:" addproperty="svn.username" / -->
406
		<!-- input message="Please enter svn repo password:" addproperty="svn.password" / -->
407
		<!--  svn username="${svn.username}" password="${svn.password}" -->
413
		<echo message="Exporting utilities files from svn repository:" />
408 414
		<svn>
409 415
			<export srcUrl="${svn.utilitiesUrl}"
410 416
				destPath="${utilitiesdir}" />
......
414 420
	</target>
415 421

  
416 422
	<target name="getutilities" depends="prepare"
417
		description="Checks utility out of svn and copies it to your metacat cvs sandbox">
423
		description="Checks utility out of svn and copies it to your metacat sandbox">
418 424
		<svn>
419 425
			<export srcUrl="${svn.utilitiesUrl}"
420 426
				destPath="${utilitiesdir}" />
......
490 496
		if="eml.required" description="Calls getemlpre2 and geteml2+ targets" />
491 497

  
492 498
	<target name="getemlpre2" depends="prepare" if="eml.required"
493
		description="Checks EML-beta6 out of cvs and copies dtds and xsl to your metacat cvs sandbox">
494
		<echo>Enter CVS password:</echo>
495
		<cvs cvsRoot="${cvsroot}" package="${eml-module}"
496
			tag="${eml-beta-tag}" dest="${build.tmp}/eml_${eml-beta-tag}" />
499
		description="Checks EML-beta6 out of svn and copies dtds and xsl to your metacat sandbox">
500
		<svn>
501
			<export srcUrl="${svn.emlBetaUrl}"
502
				destPath="${build.tmp}/eml_${eml-beta-tag}" />
503
		</svn>
497 504
		<mkdir dir="lib/dtd" />
498 505
		<copy todir="lib/dtd" filtering="yes">
499 506
			<fileset
500
				dir="${build.tmp}/eml_${eml-beta-tag}/${eml-module}">
507
				dir="${build.tmp}/eml_${eml-beta-tag}">
501 508
				<include name="*.dtd" />
502 509
			</fileset>
503 510
			<mapper type="glob" from="eml-*.dtd"
......
506 513

  
507 514
		<copy todir="${style-common-cvsrelpath}" filtering="yes">
508 515
			<fileset
509
				dir="${build.tmp}/eml_${eml-beta-tag}/${eml-module}/style">
516
				dir="${build.tmp}/eml_${eml-beta-tag}/style">
510 517
				<include name="**/*.xsl" />
511 518
			</fileset>
512 519
		</copy>
513 520
	</target>
514 521

  
515 522
	<target name="geteml2+" depends="prepare" if="eml.required"
516
		description="Checks eml-2 out of cvs and copies schema and xsl to your metacat cvs sandbox">
517
		<echo>Enter CVS password:</echo>
518
		<cvs cvsRoot="${cvsroot}" package="${eml-module}"
519
			tag="${eml2_0_0-schema-tag}"
520
			dest="${build.tmp}/eml_${eml2_0_0-schema-tag}" />
523
		description="Checks eml-2 out of svn and copies schema and xsl to your metacat sandbox">
524
		<svn>
525
			<export srcUrl="${svn.eml200SchemaUrl}"
526
				destPath="${build.tmp}/eml_${eml2_0_0-schema-tag}" />
527
		</svn>
521 528
		<mkdir dir="lib/schema/eml-2.0.0" />
522 529
		<copy todir="lib/schema/eml-2.0.0" filtering="yes">
523 530
			<fileset
524
				dir="${build.tmp}/eml_${eml2_0_0-schema-tag}/${eml-module}">
531
				dir="${build.tmp}/eml_${eml2_0_0-schema-tag}">
525 532
				<include name="*.xsd" />
526 533
			</fileset>
527 534

  
......
538 545
			</antcall> -->
539 546

  
540 547
		<!-- Checkout eml201 for given schema tag-->
541
		<echo>Enter CVS password:</echo>
542
		<cvs cvsRoot="${cvsroot}" package="${eml-module}"
543
			tag="${eml2_0_1-schema-tag}"
544
			dest="${build.tmp}/eml_${eml2_0_1-schema-tag}" />
548
		<svn>
549
			<export srcUrl="${svn.eml201SchemaUrl}"
550
				destPath="${build.tmp}/eml_${eml2_0_1-schema-tag}" />
551
		</svn>
545 552
		<mkdir dir="lib/schema/eml-2.0.1" />
546 553
		<copy todir="lib/schema/eml-2.0.1" filtering="yes">
547 554
			<fileset
548
				dir="${build.tmp}/eml_${eml2_0_1-schema-tag}/${eml-module}">
555
				dir="${build.tmp}/eml_${eml2_0_1-schema-tag}">
549 556
				<include name="*.xsd" />
550 557
			</fileset>
551 558
		</copy>
......
562 569
			</antcall -->
563 570

  
564 571
		<!-- Checkout eml210 for given schema tag-->
565
		<echo>Enter CVS password:</echo>
566
		<cvs cvsRoot="${cvsroot}" package="${eml-module}"
567
			tag="${eml2_1_0-schema-tag}"
568
			dest="${build.tmp}/eml_${eml2_1_0-schema-tag}" />
572
		<svn>
573
			<export srcUrl="${svn.eml210SchemaUrl}"
574
				destPath="${build.tmp}/eml_${eml2_1_0-schema-tag}" />
575
		</svn>
569 576
		<mkdir dir="lib/schema/eml-2.1.0" />
570 577
		<copy todir="lib/schema/eml-2.1.0" filtering="yes">
571 578
			<fileset
572
				dir="${build.tmp}/eml_${eml2_1_0-schema-tag}/${eml-module}">
579
				dir="${build.tmp}/eml_${eml2_1_0-schema-tag}">
573 580
				<include name="*.xsd" />
574 581
			</fileset>
575 582
		</copy>
576 583

  
577 584
		<!-- Checkout eml210 for given style sheet tag-->
578
		<echo>Enter CVS password:</echo>
579
		<cvs cvsRoot="${cvsroot}" package="${eml-module}"
580
			tag="${eml2-style-tag}" dest="${build.tmp}/eml_${eml2-style-tag}" />
585
		<svn>
586
			<export srcUrl="${svn.eml2StyleUrl}"
587
				destPath="${build.tmp}/eml_${eml2-style-tag}" />
588
		</svn>
581 589
		<antcall target="copyxsl">
582 590
			<param name="cvs.tagname" value="${eml2-style-tag}" />
583 591
			<!-- param name="dirname" value="eml-2.1.0" / -->
......
586 594
	</target>
587 595

  
588 596
	<target name="copyxsl"
589
		description="Copies xsl stylesheets from checkout in build/tmp to your metacat cvs sandbox">
597
		description="Copies xsl stylesheets from checkout in build/tmp to your metacat sandbox">
590 598

  
591 599
		<delete file="${style-common-cvsrelpath}/${eml-css}" />
592 600

  
593 601
		<copy todir="${style-common-cvsrelpath}/${dirname}"
594 602
			filtering="yes">
595 603
			<fileset
596
				dir="${build.tmp}/eml_${cvs.tagname}/${eml-module}/style/eml">
604
				dir="${build.tmp}/eml_${cvs.tagname}/style/eml">
597 605
				<include name="**/*.xsl" />
598 606
			</fileset>
599 607
		</copy>
......
602 610
		<!-- now copy default css from eml module and put it in style-common-path
603 611
			dir with a new name, so other skin-specific css can import it if reqd -->
604 612
		<copy
605
			file="${build.tmp}/eml_${cvs.tagname}/${eml-module}/${eml-module.default.css}"
613
			file="${build.tmp}/eml_${cvs.tagname}/${eml-module.default.css}"
606 614
			tofile="${style-common-cvsrelpath}/${eml-css}" />
607 615

  
608 616
	</target>
......
962 970
		unless="styles.not.needed"
963 971
		description="Gets the conversion stylesheets for eml2 beta 6 to eml 2.0.0">
964 972

  
965
		<echo>Enter CVS password:</echo>
966
		<cvs cvsRoot="${cvsroot}" package="${eml-module}"
967
			tag="${eml2-style-tag}" dest="${build.tmp}/eml_${eml2-style-tag}" />
973
		<svn>
974
			<export srcUrl="${svn.eml2StyleUrl}"
975
				destPath="${build.tmp}/conv_eml_${eml2-style-tag}" />
976
		</svn>
968 977

  
969 978
		<mkdir dir="lib/style/common/emlb6toeml2" />
970 979
		<copy todir="lib/style/common/emlb6toeml2" filtering="yes">
971 980
			<fileset
972
				dir="${build.tmp}/eml_${eml2-style-tag}/${eml-module}/lib/beta6toeml2/xsl">
981
				dir="${build.tmp}/conv_eml_${eml2-style-tag}/lib/beta6toeml2/xsl">
973 982
				<include name="*.xsl" />
974 983
				<include name="*.xml" />
975 984
			</fileset>

Also available in: Unified diff