* @param simpleOptions options of the javadoc generation
* @return the root doc of the files
*/
public static RootDoc createJavadoc(File sourcedir, ListBuffer<String> javaNames, ListBuffer<String> subPackages, Map<String,String> simpleOptions) throws Exception{
Context context = new Context();
Options options = Options.instance(context);
options.put(OPTION_SOURCEPATH, sourcedir.getAbsolutePath());
ListBuffer<String[]> optionList = new ListBuffer<String[]>();
optionList.append(new String[]{OPTION_SOURCEPATH, sourcedir.getAbsolutePath()});