Example usage for com.liferay.portal.kernel.util SortedProperties SortedProperties

List of usage examples for com.liferay.portal.kernel.util SortedProperties SortedProperties

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util SortedProperties SortedProperties.

Prototype

public SortedProperties() 

Source Link

Usage

From source file:com.liferay.content.targeting.benchmark.tools.CTSampleSQLBuilder.java

License:Open Source License

public static void main(String[] args) {
    InitUtil.initWithSpring();/*from w ww . j a  v a 2 s . co m*/

    Reader reader = null;

    try {
        Properties properties = new SortedProperties();

        reader = new FileReader(args[0]);

        properties.load(reader);

        DataFactory dataFactory = new CTDataFactory(properties);

        new CTSampleSQLBuilder(properties, dataFactory);
    } catch (Exception e) {
        e.printStackTrace();
    } finally {
        if (reader != null) {
            try {
                reader.close();
            } catch (IOException ioe) {
                ioe.printStackTrace();
            }
        }
    }
}