Class PluginDescriptorGenerator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.maven.plugin.logging.Log log  
    • Constructor Summary

      Constructors 
      Constructor Description
      PluginDescriptorGenerator​(org.apache.maven.plugin.logging.Log log)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(java.io.File destinationDirectory, PluginToolsRequest request)
      Execute the generation for a given plugin descriptor.
      private java.lang.String getExpression​(org.apache.maven.plugin.descriptor.Parameter parameter)
      Get the expression value, eventually surrounding it with ${ }.
      private java.lang.String getVersion()  
      protected void processMojoDescriptor​(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, org.codehaus.plexus.util.xml.XMLWriter w)  
      protected void processMojoDescriptor​(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, org.codehaus.plexus.util.xml.XMLWriter w, boolean helpDescriptor)  
      void writeDescriptor​(java.io.File destinationFile, PluginToolsRequest request, boolean helpDescriptor)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        private final org.apache.maven.plugin.logging.Log log
    • Constructor Detail

      • PluginDescriptorGenerator

        public PluginDescriptorGenerator​(org.apache.maven.plugin.logging.Log log)
    • Method Detail

      • getVersion

        private java.lang.String getVersion()
      • writeDescriptor

        public void writeDescriptor​(java.io.File destinationFile,
                                    PluginToolsRequest request,
                                    boolean helpDescriptor)
                             throws java.io.IOException,
                                    org.apache.maven.plugin.descriptor.DuplicateMojoDescriptorException
        Throws:
        java.io.IOException
        org.apache.maven.plugin.descriptor.DuplicateMojoDescriptorException
      • processMojoDescriptor

        protected void processMojoDescriptor​(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
                                             org.codehaus.plexus.util.xml.XMLWriter w)
      • processMojoDescriptor

        protected void processMojoDescriptor​(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
                                             org.codehaus.plexus.util.xml.XMLWriter w,
                                             boolean helpDescriptor)
        Parameters:
        mojoDescriptor - not null
        w - not null
        helpDescriptor - will clean html content from description fields
      • getExpression

        private java.lang.String getExpression​(org.apache.maven.plugin.descriptor.Parameter parameter)
        Get the expression value, eventually surrounding it with ${ }.
        Parameters:
        parameter - the parameter
        Returns:
        the expression value