|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo net.sf.maven.plugins.eclipseformat.EclipseFormatMojo
public class EclipseFormatMojo
Format java source files with the Eclipse java formatter.
Field Summary | |
---|---|
protected static java.lang.String |
CODE_FORMAT_CONFIG
|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
EclipseFormatMojo()
|
Method Summary | |
---|---|
void |
execute()
|
void |
setFailOnError(boolean failOnError)
Set the failOnError value. |
void |
setFileEncoding(java.lang.String fileEncoding)
Set the fileEncoding value. |
void |
setFileFormat(java.lang.String fileFormat)
Set the fileFormat value. |
void |
setFormatConfig(java.lang.String formatConfig)
Set the formatConfig value. |
void |
setProject(org.apache.maven.project.MavenProject project)
Set the project value. |
void |
setSourceDirectory(java.io.File sourceDirectory)
Set the sourceDirectory value. |
void |
setSrcExcludesPattern(java.lang.String srcExcludesPattern)
Set the srcExcludesPattern value. |
void |
setSrcIncludesPattern(java.lang.String srcIncludesPattern)
Set the srcIncludesPattern value. |
void |
setTestExcludesPattern(java.lang.String testExcludesPattern)
Set the testExcludesPattern value. |
void |
setTestIncludesPattern(java.lang.String testIncludesPattern)
Set the testIncludesPattern value. |
void |
setTestSourceDirectory(java.io.File testSourceDirectory)
Set the testSourceDirectory value. |
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 java.lang.String CODE_FORMAT_CONFIG
Constructor Detail |
---|
public EclipseFormatMojo()
Method Detail |
---|
public void execute()
public void setFileFormat(java.lang.String fileFormat)
Set the fileFormat
value.
fileFormat
- the value to set.public void setFailOnError(boolean failOnError)
Set the failOnError
value.
failOnError
- the value to set.public void setSourceDirectory(java.io.File sourceDirectory)
Set the sourceDirectory
value.
${project.build.sourceDirectory}
sourceDirectory
- the value to set.public void setTestSourceDirectory(java.io.File testSourceDirectory)
Set the testSourceDirectory
value.
${project.build.testSourceDirectory}
testSourceDirectory
- the value to set.public void setSrcIncludesPattern(java.lang.String srcIncludesPattern)
Set the srcIncludesPattern
value.
srcIncludesPattern
- the value to set.public void setSrcExcludesPattern(java.lang.String srcExcludesPattern)
Set the srcExcludesPattern
value.
**\*.exc
.
srcExcludesPattern
- the value to set.public void setTestIncludesPattern(java.lang.String testIncludesPattern)
Set the testIncludesPattern
value.
testIncludesPattern
- the value to set.public void setTestExcludesPattern(java.lang.String testExcludesPattern)
Set the testExcludesPattern
value.
*\*\*.exc
.
testExcludesPattern
- the value to set.public void setFormatConfig(java.lang.String formatConfig)
formatConfig
value.
formatConfig
- the value to set.public void setFileEncoding(java.lang.String fileEncoding)
fileEncoding
value.
fileEncoding
- the value to set.public void setProject(org.apache.maven.project.MavenProject project)
project
value.
project
- the value to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |