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
protected void saveManifest() throws CoreException, IOException {
		ByteArrayOutputStream manifestOutput= new ByteArrayOutputStream();
		ByteArrayInputStream fileInput= null;
		try {
			Manifest manifest= fJarPackage.getManifestProvider().create(fJarPackage);
			manifest.write(manifestOutput);
			fileInput= new ByteArrayInputStream(manifestOutput.toByteArray());
			if (fJarPackage.getManifestFile().isAccessible()) {
				if (fJarPackage.canOverwriteManifest(fParentShell))
				fJarPackage.getManifestFile().setContents(fileInput, true, true, null);
			}
			else {
				fJarPackage.getManifestFile().create(fileInput, true, null);
			}
		} finally {
			if (manifestOutput != null)
				manifestOutput.close();
			if (fileInput != null)
				fileInput.close();
		}
	}
	/**
	 * Reads the JAR package spec from file.
	 */
	protected JarPackage readJarPackage(IFile description) {
		Assert.isLegal(description.isAccessible());
		Assert.isNotNull(description.getFileExtension());
		Assert.isLegal(description.getFileExtension().equals(JarPackage.DESCRIPTION_EXTENSION));
		JarPackage jarPackage= null;
		JarPackageReader reader= null;