All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.st.p2012.mind.MindocConfig Maven / Gradle / Ivy

The newest version!
package com.st.p2012.mind;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public final class MindocConfig {
  private static final String SVN_PROJECT_NAME = "svn-project-name";
  private static final String SVN_VIEWVC_URL = "svn-viewvc-url";
  private static final Properties properties = new Properties();

  public static String getSVNViewVCURL() {
    return properties.getProperty(SVN_VIEWVC_URL);
  }

  public static String getSVNProjectName() {
    return properties.getProperty(SVN_PROJECT_NAME);
  }

  protected static void loadProperties(final File propertyFile) throws IOException {
   final FileInputStream fis = new FileInputStream(propertyFile);
    properties.load(fis);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy