FileObject docs = provider.getDocumentsDirectory();
compiler.setDocumenationFolder(FileUtil.toFile(docs));
if(compiler.document()) {
//speak some kind of message saying that documentation was generated
if (TextToSpeechOptions.isScreenReading())
speech.speak("Documentation was built successfully", SpeechPriority.HIGH);
}
else {
if (TextToSpeechOptions.isScreenReading())
speech.speak("Error while building documentation", SpeechPriority.HIGH);
}