Class AbstractInstrumentMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.offbynull.coroutines.mavenplugin.AbstractInstrumentMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
MainInstrumentMojo, TestInstrumentMojo

public abstract class AbstractInstrumentMojo extends org.apache.maven.plugin.AbstractMojo
Abstract instrumentation mojo. Provides base functionality for instrumentation.
Author:
Kasra Faghihi
  • Field Summary

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final org.apache.maven.project.MavenProject
    Gets the maven project details.
    protected final void
    instrumentPath(org.apache.maven.plugin.logging.Log log, List<String> classpath, File path)
    Instruments all classes in a path recursively.

    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

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

    execute
  • Constructor Details

    • AbstractInstrumentMojo

      public AbstractInstrumentMojo()
  • Method Details

    • instrumentPath

      protected final void instrumentPath(org.apache.maven.plugin.logging.Log log, List<String> classpath, File path) throws org.apache.maven.plugin.MojoExecutionException
      Instruments all classes in a path recursively.
      Parameters:
      log - maven logger
      classpath - classpath for classes being instrumented
      path - directory containing files to instrument
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if any exception occurs
    • getProject

      protected final org.apache.maven.project.MavenProject getProject()
      Gets the maven project details.
      Returns:
      maven project