getLog().debug("webhelp indexing on: " + targetBaseDir);
copyTemplate();
// Creating a DirList with index page excluded, and all other html pages included
DirList nsiDoc = new DirList(targetBaseDir, new String[]{"ix01.html","^.*\\.html?$"}, 1);
//new String[]{"ix01.html","^.*\\.html?$"}
// topic files listed in the given directory
ArrayList htmlFiles = nsiDoc.getListFiles();
if (htmlFiles.isEmpty()) {
throw new MojoExecutionException("No file *.html listed in: " + targetBaseDir);
}
// Get the list of all html files with relative paths
ArrayList htmlFilesPathRel = nsiDoc.getListFilesRelTo(targetBaseDir.getAbsolutePath());
if (htmlFilesPathRel == null) {
throw new MojoExecutionException("No relative html files calculated.");
}