Bug 14531 Unable to use JarPackager headless
Beginning with the 04/23 Integration build, I am unable to utilize the JarPackager in a headless environment. Specifically, I have defined my own Ant tasks which perform operations including jar packaging. The problem is in JarFileExportOperation.getDirtyEditors(Shell parent). Is it possible to accept null for parent and have the method just return an empty array?
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
addError(JarPackagerMessages.getString("JarFileExportOperation.noExportTypeChosen"), null); 
			return false;
		}
		if (fJarPackage.getElements() == null || fJarPackage.getElements().length == 0) {
			addError(JarPackagerMessages.getString("JarFileExportOperation.noResourcesSelected"), null); 
			return false;
		}
		if (fJarPackage.getJarLocation() == null) {
			addError(JarPackagerMessages.getString("JarFileExportOperation.invalidJarLocation"), null); 
			return false;
		}
		if (!fJarPackage.isManifestAccessible()) {
			addError(JarPackagerMessages.getString("JarFileExportOperation.manifestDoesNotExist"), null); 
			return false;
		}
		if (!fJarPackage.isMainClassValid(new BusyIndicatorRunnableContext())) {
			addError(JarPackagerMessages.getString("JarFileExportOperation.invalidMainClass"), null); 
			return false;
		}
		
		IFile[] unsavedFiles= getUnsavedFiles();
		if (unsavedFiles.length > 0)
			return saveModifiedResourcesIfUserConfirms(unsavedFiles);
		return true;
	}
	/**
	 * Returns the files which are not saved and which are
	 * part of the files being exported.
	 * 
	 * @return an array of unsaved files