Revision 3034
Added by perry over 17 years ago
MetaCatUtil.java | ||
---|---|---|
53 | 53 |
|
54 | 54 |
public static HashMap skinconfigs = new HashMap(); |
55 | 55 |
|
56 |
private static Options options = null; |
|
56 |
private static edu.ucsb.nceas.utilities.Options options = null;
|
|
57 | 57 |
|
58 | 58 |
private static boolean debug = true; |
59 | 59 |
|
... | ... | |
74 | 74 |
} catch (Exception e) { |
75 | 75 |
System.err.println("Error in MetaCatUtil static block:" |
76 | 76 |
+ e.getMessage()); |
77 |
e.printStackTrace(); |
|
77 | 78 |
} |
78 | 79 |
|
79 | 80 |
// read administrator and moderator lists from metacat.properties |
... | ... | |
111 | 112 |
public static String getOption(String optionName) |
112 | 113 |
{ |
113 | 114 |
if (options == null) { |
114 |
options = Options.getInstance(); |
|
115 |
options = edu.ucsb.nceas.utilities.Options.getInstance();
|
|
115 | 116 |
} |
117 |
if (options == null) { |
|
118 |
MetaCatUtil.printMessage("options is null"); |
|
119 |
} |
|
116 | 120 |
String value = options.getOption(optionName); |
117 | 121 |
return value; |
118 | 122 |
} |
... | ... | |
125 | 129 |
public static void setOption(String optionName, String newValue) |
126 | 130 |
{ |
127 | 131 |
if (options == null) { |
128 |
options = Options.getInstance(); |
|
132 |
options = edu.ucsb.nceas.utilities.Options.getInstance();
|
|
129 | 133 |
} |
130 | 134 |
options.setOption(optionName, newValue); |
131 | 135 |
|
Also available in: Unified diff
initial import of changes to metacat source and config files to support spatial option