Bug 86681 Jar exporter: add directories entries not persisted between sessions
- follow smoke test for jar exporter - check Add directories entries - observe: when opening the jar description file the item isn't checked.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWriter.java
writer.newLine();
		writer.write(Messages.format(JarPackagerMessages.JarWriter_output_manifestName, jarPackage.getManifestLocation())); 
		writer.newLine();
		writer.write(Messages.format(JarPackagerMessages.JarWriter_output_jarSealed, new Object[] {Boolean.valueOf(jarPackage.isJarSealed())})); 
		writer.newLine();
		writer.write(Messages.format(JarPackagerMessages.JarWriter_output_mainClass, JarPackagerUtil.getMainClassName(jarPackage))); 
		writer.flush();
    }
	/**
     * Closes this stream.
     * It is the client's responsibility to close the stream.
     * 
     * @throws CoreException
     */
    public void close() throws CoreException {
    	if (fOutputStream != null) {
			try {
				fOutputStream.close();
			} catch (IOException ex) {
				String message= (ex.getLocalizedMessage() != null ? ex.getLocalizedMessage() : ""); 
				throw new CoreException(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IJavaStatusConstants.INTERNAL_ERROR, message, ex));
			}
    	}
	}
	private void add(IResource resource, Element parent, Document document) {
		Element element= null;
		if (resource.getType() == IResource.PROJECT) {
			element= document.createElement("project"); 
			parent.appendChild(element);
			element.setAttribute("name", resource.getName());