Bug 188357 [EFS] Export to tar not working with pluggable filesystem
Build ID: I20070323-1616 Steps To Reproduce: 1. install a EFS I believe this is an example at /cvsroot/org.eclipse/www/eclipse/platform-ui/plugins/org.eclipse.ui.examples.filesystem 2. create a linked folder in the workspace 3. select to export / choose export to tar 4. each file selected to be exported fails More information: Failure point appears to be in org.eclipse.ui.internal.wizards.datatransfer.TarFileExporter line 74 IPath location = contents.getLocation(); Needs to be modified to use getLocationUri()
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarFileExporter.java
gzipOutputStream.close();
        }
    }
    /**
     *	Write the contents of the file to the tar archive.
     *
     *	@param entry
     *	@param contents
     *  @exception java.io.IOException
     *  @exception org.eclipse.core.runtime.CoreException
     */
    private void write(TarEntry entry, IFile contents) throws IOException, CoreException {
		IPath location = contents.getLocation();
		if (location == null) {
			throw new FileNotFoundException(contents.getFullPath().toOSString());
		}
		java.io.File localFile = location.toFile();
    	
    	entry.setSize(localFile.length());
    	
    	outputStream.putNextEntry(entry);
    	InputStream contentStream = contents.getContents(false);
        try {
            int n;
            byte[] readBuffer = new byte[4096];
            while ((n = contentStream.read(readBuffer)) > 0) {
                outputStream.write(readBuffer, 0, n);
            }
        } finally {
            if (contentStream != null) {