public static Properties read()

in core-it-support/core-it-plugins/maven-it-plugin-configuration/src/main/java/org/apache/maven/plugin/coreit/PropertiesUtil.java [46:69]


    public static Properties read(File inputFile) throws MojoExecutionException {
        Properties props = new Properties();

        if (inputFile.exists()) {
            InputStream is = null;
            try {
                is = new FileInputStream(inputFile);
                props.load(is);
            } catch (IOException e) {
                throw new MojoExecutionException(
                        "Input file " + inputFile + " could not be read: " + e.getMessage(), e);
            } finally {
                if (is != null) {
                    try {
                        is.close();
                    } catch (IOException e) {
                        // just ignore
                    }
                }
            }
        }

        return props;
    }