@Mojo(name="format",
defaultPhase=PROCESS_SOURCES,
requiresProject=false,
threadSafe=true)
public class FormatterMojo
extends org.apache.maven.plugin.AbstractMojo
implements ConfigurationSource
| Constructor and Description |
|---|
FormatterMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doFormatFile(File file,
net.revelc.code.formatter.FormatterMojo.ResultCollector rc,
Properties hashCache,
String basedirPath,
boolean dryRun)
Format individual file.
|
void |
execute()
Execute.
|
String |
getCompilerCodegenTargetPlatform() |
String |
getCompilerCompliance() |
String |
getCompilerSources() |
Charset |
getEncoding() |
File |
getTargetDirectory() |
getLog, getPluginContext, setLog, setPluginContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLogpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionException - the mojo execution exceptionorg.apache.maven.plugin.MojoFailureExceptionMojo.execute()protected void doFormatFile(File file, net.revelc.code.formatter.FormatterMojo.ResultCollector rc, Properties hashCache, String basedirPath, boolean dryRun) throws IOException, org.eclipse.jface.text.BadLocationException, org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
file - the filerc - the rchashCache - the hash cachebasedirPath - the basedir pathIOException - Signals that an I/O exception has occurred.org.eclipse.jface.text.BadLocationException - the bad location exceptionorg.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionpublic String getCompilerSources()
getCompilerSources in interface ConfigurationSourcepublic String getCompilerCompliance()
getCompilerCompliance in interface ConfigurationSourcepublic String getCompilerCodegenTargetPlatform()
getCompilerCodegenTargetPlatform in interface ConfigurationSourcepublic File getTargetDirectory()
getTargetDirectory in interface ConfigurationSourcepublic Charset getEncoding()
getEncoding in interface ConfigurationSourceCopyright © 2010–2018. All rights reserved.