Class SemanticLineBreakMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
network.ike.tools.linebreak.SemanticLineBreakMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="reformat", threadSafe=true) public class SemanticLineBreakMojo extends org.apache.maven.plugin.AbstractMojo
Reformat AsciiDoc files to use semantic linefeeds.

Line breaks are placed at logical boundaries — sentences, clauses, asides, and compound-sentence joints — producing source text that is easier to diff, edit, and reason about.

Usage:

mvn slb:reformat -Dfile=src/docs/asciidoc/my-doc.adoc -DdryRun=true
mvn slb:reformat -Dfile=src/docs/asciidoc/  # reformat all .adoc files in directory
Since:
89
  • Field Summary

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates this goal instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SemanticLineBreakMojo

      public SemanticLineBreakMojo()
      Creates this goal instance.
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException