Class StatusMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="status",
          aggregator=true)
    public class StatusMojo
    extends AbstractScmMojo
    Display the modification status of the files in the configured scm url.
    Author:
    Emmanuel Venisse, Olivier Lamy
    • Constructor Detail

      • StatusMojo

        @Inject
        public StatusMojo​(ScmManager manager,
                          org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Overrides:
        execute in class AbstractScmMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getRelativePath

        protected String getRelativePath​(File baseDir,
                                         String path)
        Formats the filename so that it is a relative directory from the base.
        Parameters:
        baseDir -
        path -
        Returns:
        The relative path