List of usage examples for com.liferay.portal.kernel.util SortedProperties SortedProperties
public SortedProperties()
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(); } } } }