question: private void writeFiltersFile ( ) { Writer writer = null ; try { FileOutputStream outputStream = new FileOutputStream ( mavenDependenciesFiltersFile ) ; writer = new OutputStreamWriter ( outputStream , StandardCharsets . ISO_8859_1 ) ; allProperties . store ( writer , null ) ; } catch ( FileNotFoundException e ) { throw new BuildException ( "Can't find file: '" + mavenDependenciesFiltersFile . getPath ( ) + "'" , e ) ; } catch ( IOException e ) { throw new BuildException ( "Exception writing out '" + mavenDependenciesFiltersFile . getPath ( ) + "'" , e ) ; } finally { if ( null != writer ) { try { writer . close ( ) ; } catch ( IOException e ) { } } } }
target:  Write out an Ant filters file to be used when copying POMs.