@Mojo(name="preprocess", defaultPhase=GENERATE_SOURCES, threadSafe=true, requiresProject=true) public class PreprocessorMojo extends org.apache.maven.plugin.AbstractMojo implements PreprocessorLogger
Constructor and Description |
---|
PreprocessorMojo() |
Modifier and Type | Method and Description |
---|---|
void |
debug(String message)
Log a debug message
|
void |
error(String message)
Log an error message
|
void |
execute() |
boolean |
getCarForLastNextLine() |
File[] |
getCfgFiles() |
boolean |
getClear() |
File |
getDestination() |
boolean |
getDisableOut() |
String |
getExcluded() |
Properties |
getGlobalVars() |
String |
getInEncoding() |
boolean |
getKeepLines() |
boolean |
getKeepSrcRoot() |
String |
getOutEncoding() |
String |
getProcessing() |
boolean |
getRemoveComments() |
String |
getSource() |
File |
getTestDestination() |
boolean |
getUseTestSources() |
boolean |
getVerbose() |
void |
info(String message)
Log an information message
|
boolean |
isCompareDestination() |
void |
setCareForLastNextLine(boolean flag) |
void |
setCfgFiles(File[] files) |
void |
setClear(boolean flag) |
void |
setCompareDestination(boolean flag) |
void |
setDestination(File destination) |
void |
setDisableOut(boolean value) |
void |
setExcluded(String excluded) |
void |
setGlobalVars(Properties vars) |
void |
setInEncoding(String value) |
void |
setKeepLines(boolean keepLines) |
void |
setKeepSrcRoot(boolean flag) |
void |
setOutEncoding(String value) |
void |
setProcessing(String processing) |
void |
setRemoveComments(boolean value) |
void |
setSource(String source) |
void |
setTestDestination(File destination) |
void |
setUseTestSources(boolean flag) |
void |
setVerbose(boolean verbose) |
void |
warning(String message)
Log a warning message
|
public void setUseTestSources(boolean flag)
public boolean getUseTestSources()
public void setClear(boolean flag)
public boolean getClear()
public void setCareForLastNextLine(boolean flag)
public boolean getCarForLastNextLine()
public void setKeepSrcRoot(boolean flag)
public boolean getKeepSrcRoot()
public void setGlobalVars(Properties vars)
public Properties getGlobalVars()
public void setCfgFiles(File[] files)
public File[] getCfgFiles()
public void setCompareDestination(boolean flag)
public boolean isCompareDestination()
public void setSource(String source)
public String getSource()
public void setDestination(File destination)
public File getDestination()
public void setTestDestination(File destination)
public File getTestDestination()
public void setInEncoding(String value)
public String getInEncoding()
public void setOutEncoding(String value)
public String getOutEncoding()
public void setExcluded(String excluded)
public String getExcluded()
public void setProcessing(String processing)
public String getProcessing()
public void setDisableOut(boolean value)
public boolean getDisableOut()
public void setVerbose(boolean verbose)
public boolean getVerbose()
public void setKeepLines(boolean keepLines)
public boolean getKeepLines()
public void setRemoveComments(boolean value)
public boolean getRemoveComments()
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
execute
in interface org.apache.maven.plugin.Mojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public void error(String message)
PreprocessorLogger
error
in interface PreprocessorLogger
message
- the text to be output into the error logpublic void info(String message)
PreprocessorLogger
info
in interface PreprocessorLogger
message
- the text to be output into the information logpublic void warning(String message)
PreprocessorLogger
warning
in interface PreprocessorLogger
message
- the text to be output into the warning logpublic void debug(String message)
PreprocessorLogger
debug
in interface PreprocessorLogger
message
- the text to be output into the information logCopyright © 2011–2017 Igor Maznitsa. All rights reserved.