Bug 20666 Export JavaDoc should examine jdk compliance
The Export Javadoc wizard should examine the jdk1.3/jdk1.4 compliance for a project and add the appropriate javadoc switch by default to the javadoc args viewer. Result of not fixing: Javadoc users will get errors in the console complaining about all their assert statements, and then have to figure out the switches to add to correct this problem.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocWriter.java
List sourcefiles= new ArrayList();
		sortSourceElement(store.getSourceElements(), sourcefiles, packages);
		if (!packages.isEmpty())
			xmlJavadocDesc.setAttribute(store.PACKAGENAMES, toSeparatedList(packages));
		if (!sourcefiles.isEmpty())
			xmlJavadocDesc.setAttribute(store.SOURCEFILES, toSeparatedList(sourcefiles));
		xmlJavadocDesc.setAttribute(store.SOURCEPATH, getPathString(store.getSourcepath()));
		xmlJavadocDesc.setAttribute(store.CLASSPATH, getPathString(store.getClasspath()));
		String str= store.getOverview();
		if (str.length() > 0) 
			xmlJavadocDesc.setAttribute(store.OVERVIEW, str);
		str= store.getStyleSheet();
		if (str.length() > 0) 
			xmlJavadocDesc.setAttribute(store.STYLESHEETFILE, str);
		str= store.getTitle();
		if (str.length() > 0) 
			xmlJavadocDesc.setAttribute(store.TITLE, str);
		str= store.getAdditionalParams();
		if (str.length() > 0) 
			xmlJavadocDesc.setAttribute(store.EXTRAOPTIONS, str);
		String hrefs= store.getDependencies();
		StringTokenizer tokenizer= new StringTokenizer(hrefs, ";"); 
		while (tokenizer.hasMoreElements()) {
			String href= (String) tokenizer.nextElement();
			Element links= document.createElement("link"); 
			xmlJavadocDesc.appendChild(links);
			links.setAttribute(store.HREF, href);
		}
	}
	private void sortSourceElement(IJavaElement[] iJavaElements, List sourcefiles, List packages) {