Bug 5853 Jar packager: progress reporting not optimal
- follow smoke test until step "Create a Jar from a Jar Package Description" - do the steps observe: the progress bar show 100% right from the beginning.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
addError(JarPackagerMessages.getString("JarFileExportOperation.errorSavingDescription"), ex); 
			} catch (IOException ex) {
				addError(JarPackagerMessages.getString("JarFileExportOperation.errorSavingDescription"), ex); 
			}
		}
	}
	protected void saveDescription() throws CoreException, IOException {
		
		if (fJarPackage.isManifestReused())
			fJarPackage.setGenerateManifest(false);
		ByteArrayOutputStream objectStreamOutput= new ByteArrayOutputStream();
		JarPackageWriter objectStream= new JarPackageWriter(objectStreamOutput);
		ByteArrayInputStream fileInput= null;
		try {
			objectStream.writeXML(fJarPackage);
			fileInput= new ByteArrayInputStream(objectStreamOutput.toByteArray());
			if (fJarPackage.getDescriptionFile().isAccessible()) {
				if (fJarPackage.canOverwriteDescription(fParentShell))
					fJarPackage.getDescriptionFile().setContents(fileInput, true, true, null);
			}
			else {
				fJarPackage.getDescriptionFile().create(fileInput, true, null);	
			}
		} finally {
			if (fileInput != null)
				fileInput.close();
			if (objectStream != null)
				objectStream.close();
		}
	}