Bug 49126 Javadoc > Project generation [javadoc]
Open generated index file in browser does not take in account the -d option when using a custom doclet.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocWizard.java
buf.append(args[i]);
					buf.append(' ');
				}
				IDebugEventSetListener listener= new JavadocDebugEventListener(getShell().getDisplay(), file);
				DebugPlugin.getDefault().addDebugEventListener(listener);
				ILaunchConfigurationWorkingCopy wc= null;
				try {
					ILaunchConfigurationType lcType= DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);
					String name= JavadocExportMessages.getString("JavadocWizard.launchconfig.name"); 
					wc= lcType.newInstance(null, name);
					wc.setAttribute(IDebugUIConstants.ATTR_PRIVATE, true);
					ILaunch newLaunch= new Launch(wc, ILaunchManager.RUN_MODE, null);
					IProcess iprocess= DebugPlugin.newProcess(newLaunch, process, JavadocExportMessages.getString("JavadocWizard.javadocprocess.label")); 
					iprocess.setAttribute(IProcess.ATTR_CMDLINE, buf.toString());
					DebugPlugin.getDefault().getLaunchManager().addLaunch(newLaunch);
				} catch (CoreException e) {
					String title= JavadocExportMessages.getString("JavadocWizard.error.title"); 
					String message= JavadocExportMessages.getString("JavadocWizard.launch.error.message"); 
					ExceptionHandler.handle(e, getShell(), title, message);
				}
				return true;
			}
		} catch (IOException e) {
			String title= JavadocExportMessages.getString("JavadocWizard.error.title"); 
			String message= JavadocExportMessages.getString("JavadocWizard.exec.error.message"); 
			IStatus status= new Status(IStatus.ERROR, JavaUI.ID_PLUGIN, IStatus.ERROR, e.getMessage(), e);
			ExceptionHandler.handle(new CoreException(status), getShell(), title, message);
			return false;
		}
		return false;