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
}
	public void singleRun(IProgressMonitor progressMonitor) throws InvocationTargetException, InterruptedException {
		int totalWork= countSelectedElements();
		progressMonitor.beginTask(JarPackagerMessages.getString("JarFileExportOperation.exporting"), totalWork); 
		try {
			if (!preconditionsOK())
				throw new InvocationTargetException(null, JarPackagerMessages.getString("JarFileExportOperation.jarCreationFailedSeeDetails")); 
			fJarWriter= new JarWriter(fJarPackage, fParentShell);
			exportSelectedElements(progressMonitor);
			if (getStatus().getSeverity() != IStatus.ERROR) {
				progressMonitor.subTask(JarPackagerMessages.getString("JarFileExportOperation.savingFiles")); 
				saveFiles();
			}
		} catch (IOException ex) {
			String message= JarPackagerMessages.getFormattedString("JarFileExportOperation.unableToCreateJarFle",  ex.getMessage()); 
			addError(message, ex);
			throw new InvocationTargetException(ex, message);
		} catch (CoreException ex) {
			String message= JarPackagerMessages.getFormattedString("JarFileExportOperation.unableToCreateJarFileDueToInvalidManifest", ex.getMessage()); 
			addError(message, ex);
			throw new InvocationTargetException(ex, message);
		} finally {
			try {
				if (fJarWriter != null)
					fJarWriter.close();
			} catch (IOException ex) {
				String message= JarPackagerMessages.getFormattedString("JarFileExportOperation.unableToCloseJarFile", ex.getMessage()); 
				addError(message, ex);
				throw new InvocationTargetException(ex, message);
			}