public abstract class AbstractDocBookMojo extends MojoInternalConfigSupport implements DirectoryLayout.BaseInfo
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractDocBookMojo.PublishingSource |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
attach
Whether or not to perform the attaching of the format
outputs as classified attachments.
|
protected File |
baseOutputDirectory
The base directory where output will be written.
|
protected org.apache.maven.model.Resource |
cssResource
A
Resource describing project-local css. |
protected DirectoryLayout |
directoryLayout |
protected File |
fontsDirectory
The directory containing local fonts
|
protected Format[] |
formats
The formats in which to perform rendering.
|
protected boolean |
ignoreTranslations
Should we ignore translations? This is useful for temporarily suspending processing of translations from a
profile or other environment specific means.
|
protected org.apache.maven.model.Resource |
imageResource
A
Resource describing project-local images. |
protected Injection[] |
injections
The injection entities.
|
protected String |
masterTranslation
The locale of the master translation.
|
protected Options |
options
Configurable options
|
static String |
PLUGIN_NAME |
protected Profiling |
profiling
Profiling configuration
|
protected File |
sourceDirectory
The directory where the sources are located.
|
protected String |
sourceDocumentName
The name of the document (relative to sourceDirectory) which is the
document to be rendered.
|
protected String[] |
translations
The locales of all non-master translations.
|
archiverManager, artifactCollector, artifactMetadataSource, artifactResolver, localRepository, pluginArtifacts, project, projectArtifacts, session, settings| Constructor and Description |
|---|
AbstractDocBookMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.apache.maven.artifact.Artifact> |
collectArtifactsByType(String type,
boolean transitivesFirst) |
protected void |
doExecute() |
void |
execute() |
Locale |
fromLanguageString(String languageStr) |
File |
getBaseOutputDirectory() |
File |
getBaseSourceDirectory() |
protected org.jboss.jdocbook.JDocBookComponentRegistry |
getComponentRegistry() |
File[] |
getFontDirectories() |
protected Format |
getFormatOptions(String name) |
protected List<Format> |
getFormatOptionsList() |
String |
getMasterLanguage() |
org.jboss.maven.plugins.jdocbook.AbstractDocBookMojo.MasterLanguageDescriptorImpl |
getMasterLanguageDescriptor() |
protected Locale |
getMasterLanguageLocale() |
protected File |
getProfiledDocument(Locale languageLocale) |
protected File |
getProfiledDocument(String language) |
protected String |
getRequestedFormat() |
protected Locale |
getRequestedLanguageLocale() |
protected File |
getRootMasterSourceFile() |
protected File |
getSourceDocument(Locale languageLocale) |
protected File |
getSourceDocument(String language) |
List<org.jboss.jdocbook.translate.TranslationSource> |
getTranslationSources(boolean excludeIgnoredTranslations) |
protected Locale |
parseLocale(String locale) |
protected void |
process()
The override method to perform the actual processing of the
mojo.
|
protected List<AbstractDocBookMojo.PublishingSource> |
resolvePublishingSources() |
protected String |
stringify(Locale locale) |
public static final String PLUGIN_NAME
protected String sourceDocumentName
protected File sourceDirectory
protected File baseOutputDirectory
protected org.apache.maven.model.Resource imageResource
Resource describing project-local images.protected org.apache.maven.model.Resource cssResource
Resource describing project-local css.protected File fontsDirectory
protected Format[] formats
protected boolean attach
protected Profiling profiling
protected Options options
protected Injection[] injections
protected boolean ignoreTranslations
protected String masterTranslation
protected String[] translations
protected final DirectoryLayout directoryLayout
public File getBaseSourceDirectory()
getBaseSourceDirectory in interface DirectoryLayout.BaseInfopublic File getBaseOutputDirectory()
getBaseOutputDirectory in interface DirectoryLayout.BaseInfoprotected void process()
throws org.jboss.jdocbook.JDocBookProcessException
org.jboss.jdocbook.render.RenderingException - Indicates problem performing renderingorg.jboss.jdocbook.xslt.XSLTException - Indicates problem building or executing XSLT transformerorg.jboss.jdocbook.JDocBookProcessExceptionpublic final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void doExecute()
throws org.jboss.jdocbook.JDocBookProcessException
org.jboss.jdocbook.JDocBookProcessExceptionprotected String getRequestedFormat()
protected Locale getRequestedLanguageLocale()
public File[] getFontDirectories()
protected List<org.apache.maven.artifact.Artifact> collectArtifactsByType(String type, boolean transitivesFirst)
public String getMasterLanguage()
getMasterLanguage in interface DirectoryLayout.BaseInfoprotected Locale getMasterLanguageLocale()
protected File getRootMasterSourceFile()
protected List<AbstractDocBookMojo.PublishingSource> resolvePublishingSources()
protected org.jboss.jdocbook.JDocBookComponentRegistry getComponentRegistry()
public org.jboss.maven.plugins.jdocbook.AbstractDocBookMojo.MasterLanguageDescriptorImpl getMasterLanguageDescriptor()
public List<org.jboss.jdocbook.translate.TranslationSource> getTranslationSources(boolean excludeIgnoredTranslations)
Copyright © 2007-2015 JBoss, a division of Red Hat, Inc. All Rights Reserved.