@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() |
public void setExcludedFolders(@MustNotContainNull String... antPatterns)
@MustNotContainNull public String[] getExcludedFolders()
public void setIgnoreMissingSources(boolean flag)
public boolean isIgnoreMissingSources()
public void setSkip(boolean flag)
public boolean isSkip()
public void setPreserveIndent(boolean flag)
public boolean getPreserveIndent()
public void setCopyFileAttributes(boolean flag)
public boolean getCopyFileAttributes()
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(@MustNotContainNull File[] files)
@MustNotContainNull 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 setUnknownVarAsFalse(boolean flag)
public boolean getUnknownVarAsFalse()
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 setAllowWhitespace(boolean flag)
public boolean getAllowWhitespace()
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–2020 Igor Maznitsa. All rights reserved.