Package net.sf.microproperties

Examples of net.sf.microproperties.JarFileProperties


   *
   * @param fileName
   *            the file name to use for property loading.
   */
  public static void configure(String fileName) {
    JarFileProperties jarFileProperties = new JarFileProperties();
    System.out.println("Trying to load properties from " + fileName);

    try {
      jarFileProperties.load(fileName);
      PropertyConfigurator configurator = new PropertyConfigurator();
      configurator.configure(jarFileProperties);
    } catch (IOException e) {
      System.err.println("Failed to load properties file: " + fileName);
    }
View Full Code Here


      throw new IllegalArgumentException("MIDlet must not be null.");
    }

    this.midlet = midlet;

    JarFileProperties properties = new JarFileProperties();
    try {
      properties.load(jarFileName);
      this.defaults = properties;
    } catch (IOException e) {
      System.err.println("Failed to load properties file.");
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.microproperties.JarFileProperties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.