Bug 81603 [Import/Export] tar import/export does not preserve file permissions
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarFileExporter.java
*	currently-open .tar.gz
     *
     *	@exception java.io.IOException
     */
    public void finished() throws IOException {
        outputStream.close();
        if(gzipOutputStream != null) {
        	gzipOutputStream.close();
        }
    }
    /**
     *	Create a new TarEntry with the passed pathname and contents, and write it
     *	to the current archive.
     *
     *	@param entry
     *	@param contents byte[]
     *	@exception java.io.IOException
     */
    private void write(TarEntry entry, byte[] contents) throws IOException {
    	entry.setSize(contents.length);
    	outputStream.putNextEntry(entry);
    	outputStream.write(contents);
    	outputStream.closeEntry();    	
    }
    /**
     *  Write the passed resource to the current archive.
     *
     *  @param resource org.eclipse.core.resources.IFile
     *  @param destinationPath java.lang.String
     *  @exception java.io.IOException