private Properties loadPropertiesFile ( File propertiesFile ) throws MojoExecutionException { // NOSONAR try ( FileInputStream propertiesFileInputStream = new FileInputStream ( propertiesFile ) ) { Properties loadedProperties = new Properties ( ) ; loadedProperties . load ( propertiesFileInputStream ) ; return loadedProperties ; } catch ( IOException e ) { throw new MojoExecutionException ( e . getMessage ( ) , e ) ; } }
Take a properties file and load it into a Properties Object