public void writePropertiesToFile ( File outputFile ) throws MojoExecutionException { // NOSONAR stripOutReservedProperties ( ) ; //TODO if jmeter.properties write properties that are required for plugin if ( properties . isEmpty ( ) ) { return ; } try { try ( FileOutputStream writeOutFinalPropertiesFile = new FileOutputStream ( outputFile ) ) { properties . store ( writeOutFinalPropertiesFile , null ) ; writeOutFinalPropertiesFile . flush ( ) ; } } catch ( IOException e ) { throw new MojoExecutionException ( e . getMessage ( ) , e ) ; } }
Strip out any reserved properties and then write properties object to a file .