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

com.versioneye.utils.PropertiesUtils Maven / Gradle / Ivy

Go to download

The maven-indexer project is used by VersionEye to download, read and iterate Maven indexes from Maven repository servers. This project is part of the VersionEye crawling framework.

There is a newer version: 1.1.5
Show newest version
package com.versioneye.utils;

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

/**
 * Created with IntelliJ IDEA.
 * User: robertreiz
 * Date: 8/9/13
 * Time: 3:27 PM
 */
public class PropertiesUtils {

    public Properties readProperties(String filePath) throws Exception{
        Properties properties = new Properties();
        InputStream inputStream = null;
        File file = new File(filePath);
        inputStream = new FileInputStream( file );
        properties.load(inputStream);
        return properties;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy