Project

General

Profile

« Previous | Next » 

Revision 7299

include dataone.ore.downloaddata as a configurable property in case MNs (like LTER) want to have the process download externally-stored data files described in an EML data package.

View differences:

lib/metacat.properties
558 558
dataone.types.xsl=/cn/xslt/dataone.types.v1.xsl
559 559

  
560 560
# DataONE configuration settings
561
dataone.ore.downloaddata=false
561 562
dataone.ore.generated=false
562 563
dataone.systemmetadata.generated=false
563 564

  
src/edu/ucsb/nceas/metacat/admin/upgrade/dataone/GenerateORE.java
38 38
import edu.ucsb.nceas.metacat.admin.upgrade.UpgradeUtilityInterface;
39 39
import edu.ucsb.nceas.metacat.dataone.SystemMetadataFactory;
40 40
import edu.ucsb.nceas.metacat.properties.PropertyService;
41
import edu.ucsb.nceas.utilities.PropertyNotFoundException;
41 42
import edu.ucsb.nceas.utilities.SortedProperties;
42 43

  
43 44
public class GenerateORE implements UpgradeUtilityInterface {
......
52 53
        // include ORE, data, for this server only
53 54
        boolean includeOre = true;
54 55
        boolean downloadData = false;
56
        try {
57
			downloadData = Boolean.parseBoolean(PropertyService.getProperty("dataone.ore.downloaddata"));
58
		} catch (PropertyNotFoundException e) {
59
			// ignore, default to false
60
			log.warn("Could not find ORE 'dataone.ore.downloaddata' property, defaulting to false", e);
61
		}
55 62

  
63

  
56 64
        try {
57 65
        	// get only local ids for this server
58 66
            List<String> idList = null;

Also available in: Unified diff