@Mojo(name="build-index-html",
requiresDependencyResolution=COMPILE,
defaultPhase=PACKAGE)
public class BuildIndexHtmlMojo
extends de.mhoffrogge.maven.plugins.base.AbstractBaseMojo
| Constructor and Description |
|---|
BuildIndexHtmlMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFolderToFolderStackIfNeeded(int depth,
String folderName) |
protected void |
addProbableForwardLinks(List<String> listOfChilds,
Properties props) |
protected void |
addToCompositeChilds(int depth,
String folderName) |
protected static String |
buildCompositeLocation(String locationName) |
protected static String |
buildFileLink(String fileName) |
protected static String |
buildFolderLink(String folderName) |
protected void |
createCompositeFilesAndIndexHtmlAsRequired(File dir,
Properties props,
int depth,
boolean isToCreateCompositeXmls) |
protected void |
createCompositeXml(String compositeBaseName,
long timeStamp,
List<String> listOfChilds,
File dir,
String repoName) |
protected void |
createCompositeXmls(List<String> listOfChilds,
File dir,
String repoName) |
protected void |
enforceBaseDirUpdateSitePropertiesFileIfConfigured() |
void |
execute() |
protected void |
executeInternal(boolean isToCreateCompositeXmls,
boolean isToCreateIndexHtml) |
protected File |
getEffectiveBaseDir() |
protected String |
getIndexTemplate(String indexTemplateFileName,
String defaultResourceName) |
protected org.apache.commons.lang3.tuple.Pair<Boolean,StringBuilder> |
getUpdateSiteContentFragment(File dir,
Properties props,
int depth) |
protected boolean |
isExcludedDirName(String dirName) |
protected boolean |
isExcludedFileName(String fileName) |
protected boolean |
isUpdateSiteFile(String fileName) |
protected boolean |
removeFolderFromFolderStackAndCreateCompositeXmlIfNeeded(int depth,
File dir,
String repoName,
Properties props,
boolean isToCreateCompositeXmls) |
protected static String |
replaceFileContent(String fileContent,
String value,
String propertyName) |
protected void |
walkAllFiles(File dir,
int depth) |
getMavenSession, getPluginManager, getPluginVersionResolver, getProject, isProjectSnapshotVersionpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void executeInternal(boolean isToCreateCompositeXmls,
boolean isToCreateIndexHtml)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected File getEffectiveBaseDir()
protected void enforceBaseDirUpdateSitePropertiesFileIfConfigured()
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected String getIndexTemplate(String indexTemplateFileName, String defaultResourceName) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void walkAllFiles(File dir, int depth) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void addFolderToFolderStackIfNeeded(int depth,
String folderName)
protected boolean removeFolderFromFolderStackAndCreateCompositeXmlIfNeeded(int depth,
File dir,
String repoName,
Properties props,
boolean isToCreateCompositeXmls)
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void addProbableForwardLinks(List<String> listOfChilds, Properties props)
listOfChilds - props - protected void createCompositeXmls(List<String> listOfChilds, File dir, String repoName) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void createCompositeXml(String compositeBaseName, long timeStamp, List<String> listOfChilds, File dir, String repoName) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void addToCompositeChilds(int depth,
String folderName)
protected void createCompositeFilesAndIndexHtmlAsRequired(File dir, Properties props, int depth, boolean isToCreateCompositeXmls) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected static String replaceFileContent(String fileContent, String value, String propertyName)
protected org.apache.commons.lang3.tuple.Pair<Boolean,StringBuilder> getUpdateSiteContentFragment(File dir, Properties props, int depth) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected boolean isUpdateSiteFile(String fileName)
protected boolean isExcludedFileName(String fileName)
protected boolean isExcludedDirName(String dirName)
Copyright © 2018–2021 mhoffrogge. All rights reserved.