Project

General

Profile

« Previous | Next » 

Revision 2554

Added by Jing Tao over 18 years ago

Add new method to set options.

View differences:

src/edu/ucsb/nceas/metacat/MetaCatUtil.java
100 100
        String value = options.getOption(optionName);
101 101
        return value;
102 102
    }
103
    
104
    /**
105
     * Utility method to set an option value from the properties file
106
     *
107
     * @param optionName the name of the option requested
108
     */
109
    public static void setOption(String optionName, String newValue)
110
    {
111
        if (options == null) {
112
            options = Options.getInstance();
113
        }
114
        options.setOption(optionName, newValue);
115
        
116
    }
103 117

  
104 118
    /** Utility method to convert a file handle into a URL */
105 119
    public static URL fileToURL(File file)

Also available in: Unified diff