if (!resource.isLocal(IResource.DEPTH_ZERO)) { String message= Messages.format(JarPackagerMessages.JarWriter_error_fileNotAccessible, resource.getFullPath()); throw JarPackagerUtil.createCoreException(message, null); }
	public void write(IFile resource, IPath destinationPath) throws CoreException {		if (!resource.isLocal(IResource.DEPTH_ZERO)) {			String message= Messages.format(JarPackagerMessages.JarWriter_error_fileNotAccessible, resource.getFullPath());			throw JarPackagerUtil.createCoreException(message, null);		}		try {			if (fJarPackage.areDirectoryEntriesIncluded())				addDirectories(resource, destinationPath);			addFile(resource, destinationPath);		} catch (IOException ex) {			// Ensure full path is visible			String message= null;			if (ex.getLocalizedMessage() != null)				message= Messages.format(JarPackagerMessages.JarWriter_writeProblemWithMessage, new Object[] {resource.getFullPath(), ex.getLocalizedMessage()}); 			else				message= Messages.format(JarPackagerMessages.JarWriter_writeProblem, resource.getFullPath()); 			throw JarPackagerUtil.createCoreException(message, ex);		}						}