|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.maven.reporting.AbstractMavenReport net.sf.mgaip.AdInserterMojo
public final class AdInserterMojo
Inserts Google Ads in the generated Maven site.
Control Version
Field Summary | |
---|---|
(package private) String |
customPoweredBy
Custom script to insert in the vertical zone as a powered by. |
(package private) String |
facebookLink
Link to associate in the I like Facebook button. |
(package private) String |
googleId
Identifier of the Google Account. |
(package private) boolean |
googlePlusOne
Adds a Google Plus one script in the pages. |
(package private) int |
horizontalAdHeight
Height of the horizontal ad. |
(package private) String |
horizontalAdId
Identifier of the Horizontal Ad. |
(package private) int |
horizontalAdWidth
Width of the horizontal ad. |
(package private) int |
logoAdHeight
Height of the logo ad. |
(package private) String |
logoAdId
Identifier of the Logo Ad. |
(package private) int |
logoAdWidth
Width of the logo ad. |
private File |
outputDirectory
Directory where reports will go. |
private org.apache.maven.project.MavenProject |
project
|
private org.apache.maven.doxia.siterenderer.Renderer |
siteRenderer
|
(package private) int |
uniqueAdHeight
Height of the unique ad. |
(package private) String |
uniqueAdId
Identifier of the Unique Ad. |
(package private) int |
uniqueAdWidth
Width of the unique ad. |
(package private) int |
verticalAdHeight
Height of the vertical ad. |
(package private) String |
verticalAdId
Identifier of the Vertical Ad. |
(package private) int |
verticalAdWidth
Width of the vertical ad. |
Fields inherited from interface org.apache.maven.reporting.MavenReport |
---|
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AdInserterMojo()
|
Method Summary | |
---|---|
private void |
createReport()
Creates the report via Sink. |
void |
executeReport(Locale locale)
|
String |
getDescription(Locale locale)
|
String |
getName(Locale locale)
|
protected String |
getOutputDirectory()
|
String |
getOutputName()
|
protected org.apache.maven.project.MavenProject |
getProject()
|
protected org.apache.maven.doxia.siterenderer.Renderer |
getSiteRenderer()
|
(package private) void |
log(int level,
String message)
Writes in the log in the given level. |
(package private) void |
log(Throwable exception)
Prints the content of an exception. |
private void |
replaceFiles(String directory)
Creates a list of files to modify and then replace the tags of them. |
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport |
---|
canGenerateReport, closeReport, execute, generate, generate, generate, getCategoryName, getReportOutputDirectory, getSink, getSinkFactory, isExternalReport, setReportOutputDirectory |
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 |
---|
String customPoweredBy
String facebookLink
The link has to be in this form:
https%3A%2F%2Fwww.facebook.com%2Fpages%2FZemucan%2F138284808329
Replacing the ':' by %3A, '/' by %2F
String googleId
boolean googlePlusOne
int horizontalAdHeight
String horizontalAdId
This is placed everywhere in the text.
int horizontalAdWidth
int logoAdHeight
String logoAdId
This could be used as a logo replacement.
int logoAdWidth
private File outputDirectory
private org.apache.maven.project.MavenProject project
private org.apache.maven.doxia.siterenderer.Renderer siteRenderer
int uniqueAdHeight
String uniqueAdId
Placed inline the text.
int uniqueAdWidth
int verticalAdHeight
String verticalAdId
This is placed at the vertical left side of the site, as a powered by icon.
int verticalAdWidth
Constructor Detail |
---|
public AdInserterMojo()
Method Detail |
---|
private void createReport()
public void executeReport(Locale locale)
executeReport
in class org.apache.maven.reporting.AbstractMavenReport
public String getDescription(Locale locale)
public String getName(Locale locale)
protected String getOutputDirectory()
getOutputDirectory
in class org.apache.maven.reporting.AbstractMavenReport
public String getOutputName()
protected org.apache.maven.project.MavenProject getProject()
getProject
in class org.apache.maven.reporting.AbstractMavenReport
protected org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()
getSiteRenderer
in class org.apache.maven.reporting.AbstractMavenReport
void log(int level, String message)
level
- Level of the log to write: 1 debug, 2 info, 3 warn, 4 error.message
- Message to print.void log(Throwable exception)
exception
- Exception to print.private void replaceFiles(String directory)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |