Class Moja<T extends org.apache.maven.plugin.AbstractMojo>

  • Type Parameters:
    T - Type of mojo

    public final class Moja<T extends org.apache.maven.plugin.AbstractMojo>
    extends Object
    Mutable mojo builder.
    Since:
    0.1
    • Constructor Detail

      • Moja

        public Moja​(Class<T> tpe)
        Ctor.
        Parameters:
        tpe - The type
    • Method Detail

      • with

        public Moja<T> with​(String attr,
                            Object value)
        Add one more attribute and return self.
        Parameters:
        attr - The name
        value - The value
        Returns:
        Itself
      • copy

        public Moja<T> copy​(Object mojo)
        Copy attributes from the given Mojo.
        Parameters:
        mojo - Another mojo
        Returns:
        Itself
      • execute

        public void execute()
        Execute it.