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.AbstractMojo
Mojo (Maven plugin) that outputs messages during Maven build.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
If the message should be appended to the toFile instead of opening a new file/overwrite an existing fileprivate File
The default path for fromFile and toFile.(package private) boolean
Debug flag that outputs the message as a character listprivate MavenEchoOutput
private EchoPlugin
private String
Encoding for the messages.private boolean
Overwrite read-only destination filesprivate String
If the message fetched from a file (or URL) instead of message tagprivate String
Which output level the message should have.private String
Line separator messages.private MavenPluginLog
private String
The message text that should be echoedprivate boolean
Set this to 'true' to bypass echo pluginprivate String
If the message should be sent to a file instead of standard outputFields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
message
The message text that should be echoed -
fromFile
If the message fetched from a file (or URL) instead of message tag -
basePath
The 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
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
Which output level the message should have. The following values are available 'FAIL', 'ERROR', 'WARNING', 'INFO', and 'DEBUG' -
encoding
Encoding for the messages. -
lineSeparator
@Parameter(property="echo.lineSeparator", defaultValue="${line.separator}") private 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
-
echoOutput
-
echoPlugin
-
-
Constructor Details
-
EchoMojo
EchoMojo()
-
-
Method Details
-
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:
-
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
-