Bug 6478 Jar packager progress messages misleading
When exporting classes to a JAR file, the progress message says things like: "Exporting org.eclipse.foo.MyFile.java" This is misleading, because it looks like it's adding .java files to the zip, but it's actually adding class files. I actually canceled the export and went to check the jar file when I saw these messages. I suggest just trimming the .java suffix: "Exporting org.eclipse.foo.MyFile"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
}
			
			exportClassFiles(progressMonitor, pkgRoot, resource, jProject, destinationPath);
			exportResourceFiles(pkgRoot, isInJavaProject, resource, destinationPath, isInOutputFolder);
			progressMonitor.worked(1);
			ModalContext.checkCanceled(progressMonitor);
		} else
			exportContainer(progressMonitor, resource);
	}
	private void exportContainer(IProgressMonitor progressMonitor, IResource resource) throws java.lang.InterruptedException {
		IResource[] children= null;
		try {
			children= ((IContainer) resource).members();
		} catch (CoreException e) {
			
			addWarning(JarPackagerMessages.getFormattedString("JarFileExportOperation.errorDuringExport", resource.getFullPath()), e); 
		}
		for (int i= 0; i < children.length; i++)
			exportElement(children[i], progressMonitor);
	}
	private void exportResourceFiles(IPackageFragmentRoot pkgRoot, boolean isInJavaProject, IResource resource, IPath destinationPath, boolean isInOutputFolder) {
		boolean isNonJavaResource= !isInJavaProject || (pkgRoot == null && !isInOutputFolder);
		boolean isInClassFolder= false;
		try {
			isInClassFolder= pkgRoot != null && !pkgRoot.isArchive() && pkgRoot.getKind() == pkgRoot.K_BINARY;
		} catch (JavaModelException ex) {
			addWarning(JarPackagerMessages.getFormattedString("JarFileExportOperation.cantGetRootKind", resource.getFullPath()), ex); 
		}
		if ((fJarPackage.areClassFilesExported() &&
					((isNonJavaResource || (pkgRoot != null && !isJavaFile(resource) && !isClassFile(resource)))