private void createHtmlDoc ( ) throws PrompterException { HtmlDocConfiguration configuration = new HtmlDocConfiguration ( ) ; String heading = prompter . prompt ( "Enter overview title:" , configuration . getHeading ( ) ) ; String columns = prompter . prompt ( "Enter number of columns in overview:" , configuration . getColumns ( ) ) ; String pageTitle = prompter . prompt ( "Enter page title:" , configuration . getPageTitle ( ) ) ; String outputFile = prompter . prompt ( "Enter output file name:" , configuration . getOutputFile ( ) ) ; String logo = prompter . prompt ( "Enter file path to logo:" , configuration . getLogo ( ) ) ; String confirm = prompter . prompt ( "Confirm HTML documentation: outputFile='target/" + outputFile + ( outputFile . endsWith ( ".html" ) ? "" : ".html" ) + "'\n" , Arrays . asList ( "y" , "n" ) , "y" ) ; if ( confirm . equalsIgnoreCase ( "n" ) ) { return ; } HtmlTestDocsGenerator generator = getHtmlTestDocsGenerator ( ) ; generator . withOutputFile ( outputFile + ( outputFile . endsWith ( ".html" ) ? "" : ".html" ) ) . withPageTitle ( pageTitle ) . withOverviewTitle ( heading ) . withColumns ( columns ) . useSrcDirectory ( getTestSrcDirectory ( ) ) . withLogo ( logo ) ; generator . generateDoc ( ) ; getLog ( ) . info ( "Successfully created HTML documentation: outputFile='target/" + outputFile + ( outputFile . endsWith ( ".html" ) ? "" : ".html" ) + "'" ) ; }
Create HTML documentation in interactive mode .