Interface VcsOperations.CommandInterceptor

Enclosing class:
VcsOperations
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface VcsOperations.CommandInterceptor
Test seam (ike-issues#691): intercepts each git subprocess before it runs. Throwing MojoException simulates a command failure WITHOUT executing the real subprocess; returning normally lets the command proceed. Default no-op.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    beforeCommand(File workDir, String[] command)
     
  • Method Details

    • beforeCommand

      void beforeCommand(File workDir, String[] command) throws org.apache.maven.api.plugin.MojoException
      Throws:
      org.apache.maven.api.plugin.MojoException