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
contentStream.close();
			}
        }
    	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
     *  @exception org.eclipse.core.runtime.CoreException
     */
    public void write(IFile resource, String destinationPath)
            throws IOException, CoreException {
        TarEntry newEntry = new TarEntry(destinationPath);
        if(resource.getLocalTimeStamp() != IResource.NULL_STAMP) {
        	newEntry.setTime(resource.getLocalTimeStamp() / 1000);
        }
        ResourceAttributes attributes = resource.getResourceAttributes();
        if (attributes != null && attributes.isExecutable()) {
        	newEntry.setMode(newEntry.getMode() | 0111);
        }
        if (attributes != null && attributes.isReadOnly()) {
        	newEntry.setMode(newEntry.getMode() & ~0222);
        }
        write(newEntry, resource);
    }
}