Package echo
Class EchoMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- echo.EchoMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="echo", threadSafe=true, defaultPhase=INITIALIZE, requiresProject=false) class EchoMojo extends org.apache.maven.plugin.AbstractMojoMojo (Maven plugin) that outputs messages during Maven build.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanappendIf the message should be appended to the toFile instead of opening a new file/overwrite an existing fileprivate java.io.FilebasePathThe default path for fromFile and toFile.(package private) booleancharacterOutputDebug flag that outputs the message as a character listprivate MavenEchoOutputechoOutputprivate EchoPluginechoPluginprivate java.lang.StringencodingEncoding for the messages.private booleanforceOverwrite read-only destination filesprivate java.lang.StringfromFileIf the message fetched from a file (or URL) instead of message tagprivate java.lang.StringlevelWhich output level the message should have.private java.lang.StringlineSeparatorLine separator messages.private MavenPluginLogmavenLoggerprivate java.lang.StringmessageThe message text that should be echoedprivate booleanskipSet this to 'true' to bypass echo pluginprivate java.lang.StringtoFileIf the message should be sent to a file instead of standard output
-
Constructor Summary
Constructors Constructor Description EchoMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidecho()voidexecute()Execute plugin.private voidinitLoggers()(package private) voidsetup()
-
-
-
Field Detail
-
message
@Parameter(property="echo.message") private java.lang.String message
The message text that should be echoed
-
fromFile
@Parameter(property="echo.fromFile") private java.lang.String fromFile
If the message fetched from a file (or URL) instead of message tag
-
basePath
@Parameter(defaultValue="${basedir}", readonly=true) private java.io.File basePathThe default path for fromFile and toFile. The fromFile will be read relative to this path. The toFile will be created relative to this path. READ-ONLY
-
toFile
@Parameter(property="echo.toFile") private java.lang.String toFile
If the message should be sent to a file instead of standard output
-
append
@Parameter(property="echo.append", defaultValue="false") private boolean appendIf the message should be appended to the toFile instead of opening a new file/overwrite an existing file
-
force
@Parameter(property="echo.force", defaultValue="false") private boolean forceOverwrite read-only destination files
-
level
@Parameter(property="echo.level", defaultValue="INFO") private java.lang.String levelWhich output level the message should have. The following values are available 'FAIL', 'ERROR', 'WARNING', 'INFO', and 'DEBUG'
-
encoding
@Parameter(property="echo.encoding", defaultValue="UTF-8") private java.lang.String encodingEncoding for the messages.
-
lineSeparator
@Parameter(property="echo.lineSeparator", defaultValue="${line.separator}") private java.lang.String lineSeparatorLine separator messages. Can be either \n, \r or \r\n
-
characterOutput
@Parameter(property="echo.characterOutput", defaultValue="false") boolean characterOutputDebug flag that outputs the message as a character list
-
skip
@Parameter(property="echo.skip", defaultValue="false") private boolean skipSet this to 'true' to bypass echo plugin
-
mavenLogger
private MavenPluginLog mavenLogger
-
echoOutput
private MavenEchoOutput echoOutput
-
echoPlugin
private EchoPlugin echoPlugin
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoFailureExceptionExecute plugin.- Throws:
org.apache.maven.plugin.MojoFailureException- exception that will be handled by plugin framework- See Also:
Mojo.execute()
-
initLoggers
private void initLoggers()
-
setup
void setup() throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-
echo
void echo() throws org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoFailureException
-
-