/** * Attempt to load file based on a string base filename. * * @param string * represents the file. * @return a loaded properties file. * @throws IOException * if there is an issue. */ public static Properties loadPropertiesFile(final String string) throws IOException { return loadPropertiesFile(new File(string)); } }
/** * Attempt to load file based on a string base filename. * * @param string * represents the file. * @return a loaded properties file. * @throws IOException * if there is an issue. */ public static Properties loadPropertiesFile(final String string) throws IOException { return loadPropertiesFile(new File(string)); } }
/** * Attempt to load file based on a string base filename. * * @param string * represents the file. * @return a loaded properties file. * @throws IOException * if there is an issue. */ public static Properties loadPropertiesFile(String string) throws IOException { return loadPropertiesFile(new File(string)); } }
return; Properties properties = IOUtil.loadPropertiesFile(propertiesFileName); run(properties); } else if (cmd.equalsIgnoreCase("-setkey")) { return; Properties properties = IOUtil.loadPropertiesFile(propertiesFileName); properties.put(PROP_KEY, SecurityUtil.computeBase64SHA1Hash(key.toCharArray())); IOUtil.storePropertiesFile(new File(propertiesFileName), properties);
IOUtil.loadPropertiesFile(propertiesFileName); run(properties); } else if (cmd.equalsIgnoreCase("-setkey")) { return; Properties properties = IOUtil.loadPropertiesFile(propertiesFileName); properties.put(PROP_KEY, SecurityUtil.computeBase64SHA1Hash(key.toCharArray())); IOUtil.storePropertiesFile(new File(propertiesFileName), properties);
return; Properties properties = IOUtil.loadPropertiesFile(propertiesFileName); run(properties); } else if (cmd.equalsIgnoreCase("-setkey")) { return; Properties properties = IOUtil.loadPropertiesFile(propertiesFileName); properties.put(PROP_KEY, SecurityUtil.computeBase64SHA1Hash(key.toCharArray())); IOUtil.storePropertiesFile(new File(propertiesFileName), properties);