Class AbstractHelpMojo

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static int LINE_LENGTH
      The maximum length of a display line.
      protected File output
      Optional parameter to write the output of this help in a given file, instead of writing to the console.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Field Detail

      • LINE_LENGTH

        protected static final int LINE_LENGTH
        The maximum length of a display line.
        See Also:
        Constant Field Values
      • output

        @Parameter(property="output")
        protected File output
        Optional parameter to write the output of this help in a given file, instead of writing to the console.
        Note: Could be a relative path.
    • Constructor Detail

      • AbstractHelpMojo

        public AbstractHelpMojo()
    • Method Detail

      • writeFile

        protected static void writeFile​(File output,
                                        StringBuilder content)
                                 throws IOException
        Utility method to write a content in a given file.
        Parameters:
        output - is the wanted output file.
        content - contains the content to be written to the file.
        Throws:
        IOException - if any
        See Also:
        writeFile(File, String)
      • writeFile

        protected static void writeFile​(File output,
                                        String content)
                                 throws IOException
        Utility method to write a content in a given file.
        Parameters:
        output - is the wanted output file.
        content - contains the content to be written to the file.
        Throws:
        IOException - if any