|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
com.dhptech.maven.stripbom.StripBOMMojo
public class StripBOMMojo
Goal to strip BOMs from UTF-8 text files.
| Field Summary | |
|---|---|
protected static byte[] |
UTF8_BOM
|
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
StripBOMMojo()
|
|
| Method Summary | |
|---|---|
void |
execute()
Strips the BOMs, if found, from the specified files. |
File |
getFile()
Get the single file to strip. |
List<org.apache.maven.shared.model.fileset.FileSet> |
getFiles()
The list of fileSets that will specify the files to strip BOMs from. |
boolean |
isFailBuild()
True if the build should fail when BOMs are found in any of the files processed. |
boolean |
isWarnOnly()
True if we should only warn about BOMs and not actually strip them. |
void |
setFailBuild(boolean failBuild)
Sets the failBuild property. |
void |
setFile(File file)
Set the single file to strip. |
void |
setFiles(List<org.apache.maven.shared.model.fileset.FileSet> files)
Sets the file set list. |
void |
setWarnOnly(boolean warnOnly)
Set to true to warn only on finding a BOM. |
| 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 |
|---|
protected static final byte[] UTF8_BOM
| Constructor Detail |
|---|
public StripBOMMojo()
| Method Detail |
|---|
public List<org.apache.maven.shared.model.fileset.FileSet> getFiles()
public void setFiles(List<org.apache.maven.shared.model.fileset.FileSet> files)
files - the file sets.public File getFile()
public void setFile(File file)
file - public boolean isWarnOnly()
public void setWarnOnly(boolean warnOnly)
warnOnly - true if we should only warn when finding a BOM.public boolean isFailBuild()
public void setFailBuild(boolean failBuild)
failBuild - the new value for the failBuild propertyisFailBuild()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||