Revision 5030
Added by daigle about 15 years ago
DocumentIdQuery.java | ||
---|---|---|
26 | 26 |
import java.io.File; |
27 | 27 |
import java.util.Hashtable; |
28 | 28 |
|
29 |
import edu.ucsb.nceas.metacat.service.PropertyService;
|
|
29 |
import edu.ucsb.nceas.metacat.properties.PropertyService;
|
|
30 | 30 |
import edu.ucsb.nceas.metacat.shared.ServiceException; |
31 |
import edu.ucsb.nceas.utilities.FileUtil; |
|
31 | 32 |
import edu.ucsb.nceas.utilities.PropertyNotFoundException; |
32 | 33 |
|
33 | 34 |
/** |
... | ... | |
120 | 121 |
String CONFIG_DIR = "lib"; |
121 | 122 |
File dirPath = new File(CONFIG_DIR); |
122 | 123 |
try { |
123 |
PropertyService.getInstance(); |
|
124 |
PropertyService.getInstance(dirPath.getPath() + FileUtil.getFS() + "metacat.properties");
|
|
124 | 125 |
} catch (ServiceException ioe) { |
125 | 126 |
System.err.println("Error in loading properties: " + ioe.getMessage()); |
126 | 127 |
} |
Also available in: Unified diff
Change location of PropertyService to properties directory