/** * Create properties from the file. * * @param fileName properties file name to load */ public static Properties createFromFile(String fileName) throws IOException { return createFromFile(new File(fileName)); }
/** * Create properties from the file. * * @param fileName properties file name to load */ public static Properties createFromFile(final String fileName) throws IOException { return createFromFile(new File(fileName)); }
/** * Create properties from the file. * * @param fileName properties file name to load */ public static Properties createFromFile(final String fileName) throws IOException { return createFromFile(new File(fileName)); }
private String extractComponentId(File compPath) { File propFile = new File(compPath + File.separator + "META-INF" + File.separator + "klab.properties"); if (propFile.exists()) { try { Properties properties = PropertiesUtil.createFromFile(propFile); return properties.getProperty(Component.COMPONENT_ID_PROPERTY); } catch (IOException e) { return null; } } return null; }