Project

General

Profile

« Previous | Next » 

Revision 4123

Added by daigle almost 16 years ago

Append context url onto system id instead of server url.

View differences:

DocumentIdQuery.java
24 24
package edu.ucsb.nceas.metacat;
25 25

  
26 26
import java.io.File;
27
import java.io.IOException;
28 27
import java.util.Hashtable;
29 28

  
30
import edu.ucsb.nceas.utilities.Options;
29
import edu.ucsb.nceas.metacat.service.PropertyService;
30
import edu.ucsb.nceas.metacat.service.ServiceException;
31 31
import edu.ucsb.nceas.utilities.PropertyNotFoundException;
32 32

  
33 33
/**
......
119 119
    public static void main(String[] args)
120 120
    {
121 121
        String CONFIG_DIR = "lib";
122
        String CONFIG_NAME = "metacat.properties";
123 122
        File dirPath = new File(CONFIG_DIR);
124
        File propertyFile = new File(dirPath, CONFIG_NAME);
125
        Options options = null;
126 123
        try {
127
            options = Options.initialize(propertyFile);
128
        } catch (IOException ioe) {
129
            System.err.println("Error in loading options: "
124
        	PropertyService.getInstance(dirPath.getPath());
125
        } catch (ServiceException ioe) {
126
            System.err.println("Error in loading properties: "
130 127
                    + ioe.getMessage());
131 128
        }
132 129
        

Also available in: Unified diff