Project

General

Profile

« Previous | Next » 

Revision 354

Added by berkley over 23 years ago

added new constructor to allow the creation of a metacatutil object that uses a properties file other than edu.ucsb.nceas.metacat.metacat.

View differences:

src/edu/ucsb/nceas/metacat/MetaCatUtil.java
29 29
public class MetaCatUtil {
30 30

  
31 31
  private PropertyResourceBundle options = null;
32
  private static String propertiesFile = "edu.ucsb.nceas.metacat.metacat";
32
  private String propertiesFile = "edu.ucsb.nceas.metacat.metacat";
33 33
  private Hashtable connectionPool = new Hashtable();
34 34
  private static boolean debug = false;
35 35

  
......
40 40
    options = (PropertyResourceBundle)
41 41
          PropertyResourceBundle.getBundle(propertiesFile);
42 42
  }
43
  
44
  /**
45
   * This constructor allows the usage of a different properties file
46
   * @param propFile the properties file that you wish to use.
47
   */
48
  public MetaCatUtil(String propFile)
49
  {
50
    propertiesFile = propFile;
51
  }
43 52

  
44 53
  /** 
45 54
   * Utility method to establish a JDBC database connection using connection
......
238 247

  
239 248
/**
240 249
 * '$Log$
250
 * 'Revision 1.14  2000/08/14 20:53:34  jones
251
 * 'Added "release" keyword to all metacat source files so that the release
252
 * 'number will be evident in software distributions.
253
 * '
241 254
 * 'Revision 1.13  2000/08/09 00:39:47  jones
242 255
 * '-Reorganized xmltodb module to support new install process for the new
243 256
 * 'linux server (dev.nceas.ucsb.edu).  Added "build.sh" shell script that

Also available in: Unified diff