@Override
    public final void exportTo(final File target, final boolean overwrite) throws ArchiveExportException,
        FileExistsException {
        // Get stream and perform precondition checks
        final OutputStream out = this.getOutputStreamToFile(target, overwrite);

        try {
            // Write out
            this.exportTo(out);
        } finally {
            // Close
            try {
                out.close();
            } catch (final IOException ioe) {
                // Just log
                log.warning("Could not close " + out + ": " + ioe);
            }
        }
    }
@ Override public final void exportTo ( final File target , final boolean overwrite ) throws ArchiveExportException , FileExistsException { final OutputStream out = this . getOutputStreamToFile ( target , overwrite ) ; try { this . exportTo ( out ) ; } finally { try { out . close ( ) ; } catch ( final IOException ioe ) { log . warning ( "Could not close " + out + ": " + ioe ) ; } } }
{@inheritDoc}

@see org.jboss.shrinkwrap.api.exporter.StreamExporter#exportTo(java.io.File, boolean)