Class AbstractWurbelizerMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.wurbelizer.maven.AbstractWurbelizerMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractWurbelMojo, WurbileMojo

public abstract class AbstractWurbelizerMojo extends org.apache.maven.plugin.AbstractMojo
Base class of wurbelizer mojos.
Author:
harald
  • Field Details

    • project

      @Parameter(defaultValue="${project}", required=true, readonly=true) protected org.apache.maven.project.MavenProject project
      The Maven Project Object.
    • session

      @Parameter(defaultValue="${session}", required=true, readonly=true) protected org.apache.maven.execution.MavenSession session
      The maven session.
    • filesets

      @Parameter protected List<org.apache.maven.shared.model.fileset.FileSet> filesets
      The list of file sets to wurbile.
      If set the source directory is ignored.
    • verbosity

      @Parameter(defaultValue="${wurbel.verbosity}") protected String verbosity
      The verbosity.
      One of "default", "info" or "debug". Debus is also turned on (if not set explicitly) by Maven's global debug flag (see command line switch -X).
    • charset

      @Parameter(defaultValue="${project.build.sourceEncoding}") protected String charset
      The charset used to read and write files.
    • skip

      @Parameter protected Boolean skip
      Skips processing.
      Defaults to true if packaging is "pom".
    • verbosityLevel

      protected Verbosity verbosityLevel
      mapped verbosity level
    • resourceDirs

      protected List<String> resourceDirs
      List of resource dirs.
  • Constructor Details

    • AbstractWurbelizerMojo

      public AbstractWurbelizerMojo()
  • Method Details

    • determineEncoding

      protected void determineEncoding()
      Determines the charset.
    • determineVerbosity

      protected void determineVerbosity()
      sets the verbosity
    • getPathRelativeToBasedir

      protected String getPathRelativeToBasedir(String path)
      Gets the path relative to the basedir.
      Parent dirs of the basedir will also be tried.
      Parameters:
      path - the absolute path
      Returns:
      the shortened path
    • findResourceDirs

      protected void findResourceDirs()
      Finds all resource directories.
    • getResourceDirName

      protected String getResourceDirName(String dirName)
      Checks if given directory resides in resources.
      Parameters:
      dirName - the directory name
      Returns:
      the resource dir, null if not a resource
    • createExtraProperties

      protected Properties createExtraProperties()
      Creates the extra properties.
      Returns:
      the properties
    • exportExtraProperties

      protected void exportExtraProperties(Properties props)
      Make extra properties available.
      Parameters:
      props - the properties
    • isSkipped

      protected boolean isSkipped()
      Returns whether the execution should be skipped.
      Returns:
      true to do nothing