
com.versioneye.utils.PropertiesUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-indexer Show documentation
Show all versions of maven-indexer Show documentation
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.
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