|
jDocBook Maven Plugin 2.3.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.jboss.maven.plugins.jdocbook.MojoInternalConfigSupport
org.jboss.maven.plugins.jdocbook.AbstractDocBookMojo
public abstract class AbstractDocBookMojo
Basic support for the various DocBook mojos in this packaging plugin. Mainly, we are defining common configuration attributes of the packaging.
| Nested Class Summary | |
|---|---|
protected class |
AbstractDocBookMojo.PublishingSource
|
| Field Summary | |
|---|---|
protected boolean |
attach
Whether or not to perform the attching 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? |
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. |
| Fields inherited from class org.jboss.maven.plugins.jdocbook.MojoInternalConfigSupport |
|---|
archiverManager, artifactCollector, artifactMetadataSource, artifactResolver, localRepository, pluginArtifacts, project, projectArtifacts, session, settings |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractDocBookMojo()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public AbstractDocBookMojo()
| Method Detail |
|---|
public File getBaseSourceDirectory()
getBaseSourceDirectory in interface DirectoryLayout.BaseInfopublic File getBaseOutputDirectory()
getBaseOutputDirectory in interface DirectoryLayout.BaseInfo
protected void process()
throws org.jboss.jdocbook.JDocBookProcessException
org.jboss.jdocbook.render.RenderingException - Indicates problem performing rendering
org.jboss.jdocbook.xslt.XSLTException - Indicates problem building or executing XSLT transformer
org.jboss.jdocbook.JDocBookProcessException
public 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.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected 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)
protected Locale parseLocale(String locale)
protected String stringify(Locale locale)
public String getMasterLanguage()
getMasterLanguage in interface DirectoryLayout.BaseInfoprotected Locale getMasterLanguageLocale()
protected File getRootMasterSourceFile()
protected File getSourceDocument(Locale languageLocale)
protected File getSourceDocument(String language)
protected File getProfiledDocument(Locale languageLocale)
protected File getProfiledDocument(String language)
protected List<Format> getFormatOptionsList()
protected Format getFormatOptions(String name)
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)
public Locale fromLanguageString(String languageStr)
|
jDocBook Maven Plugin 2.3.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||