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) {
      }
    }
  }
}

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 ) { } } } }
write out an ant filters file to be used when copying poms .
