Class CombineMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.gematik.BaseMojo
de.gematik.combine.CombineMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="prepare-combine", defaultPhase=GENERATE_TEST_SOURCES) public class CombineMojo extends BaseMojo
Plugin for filling empty gherkin tables with generated combinations
  • Field Details

  • Constructor Details

    • CombineMojo

      @Inject public CombineMojo(FileProcessor replacer)
  • Method Details

    • execute

      public void execute()
    • execute

      public void execute(CombineConfiguration config) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • stripEnding

      public static File stripEnding(File file, String ending)
    • allFiles

      public static Collection<File> allFiles(String dir, String ending)
    • getPluginLog

      public static org.apache.maven.plugin.logging.Log getPluginLog()
    • appendError

      public static void appendError(String error, CombineMojo.ErrorType type)
    • resetError

      public static void resetError()
    • setOutputDir

      public void setOutputDir(String outputDir)
      Path to the directory where the rendered templates got stored
    • setTemplateSources

      public void setTemplateSources(List<String> templateSources)
      Path to the directory of the templates
    • setEnding

      public void setEnding(String ending)
      The specific ending of the templates
    • setEmptyExamplesTags

      public void setEmptyExamplesTags(List<String> emptyExamplesTags)
      The plugin will add these tags to all examples tables where it was not able to add at least one row
    • setBreakIfTableToSmall

      public void setBreakIfTableToSmall(boolean breakIfTableToSmall)
      The plugin will throw exception it was not able to add at least one row
    • setMinTableSize

      public void setMinTableSize(int minTableSize)
      The plugin will throw exception it was not able to add at least one row
    • setBreakIfMinimalTableError

      public void setBreakIfMinimalTableError(boolean breakIfMinimalTableError)
      The plugin will throw exception if minimal table could not generate valid row for at least one value
    • setPluginTagCategory

      public void setPluginTagCategory(String pluginTagCategory)
      Prefix that is added to all plugin specific tags (except version filters!) in the feature file to categorize them under in the report
    • setVersionFilterTagCategory

      public void setVersionFilterTagCategory(String versionFilterTagCategory)
      Prefix that is added to all version filter tags in the feature file to categorize them under in the report
    • setVersionProperty

      public void setVersionProperty(String versionProperty)
      The plugin will look for this property to determine the version of an item, may be set to an arbitrary string, default is "version"
    • setDefaultExamplesTags

      public void setDefaultExamplesTags(List<String> defaultExamplesTags)
      List of tags that are added to each processed examples table
    • setSkipTags

      public void setSkipTags(List<String> skipTags)
      List of tags that are skipped by this plugin
    • setFilterConfiguration

      public void setFilterConfiguration(FilterConfiguration filterConfiguration)
      Filter Configuration
    • setProjectFilters

      public void setProjectFilters(ProjectFilters projectFilters)
      Project Filters
    • setSkipComb

      public void setSkipComb(boolean skipComb)
      Parameter to decide if combine-execution should be run
    • setSoftFilterToHardFilter

      public void setSoftFilterToHardFilter(boolean softFilterToHardFilter)
      Parameter to decide if SoftFiler should be not considered if minimal table size not reached
    • setCountExecutions

      public void setCountExecutions(boolean countExecutions)
      Parameter to decide if executions should be counted and exported to file
    • setCountExecutionsFormat

      public void setCountExecutionsFormat(List<String> countExecutionsFormat)
      In what formats should the counted executions be exported
    • getInstance

      public static CombineMojo getInstance()
    • setInstance

      public static void setInstance(CombineMojo instance)
    • getTableSizeErrorLog

      public static List<String> getTableSizeErrorLog()
    • getMinimalTableErrorLog

      public static List<String> getMinimalTableErrorLog()
    • getPropertyErrorLog

      public static List<String> getPropertyErrorLog()
    • getWarningsLog

      public static List<String> getWarningsLog()
    • getPluginTagCategory

      public String getPluginTagCategory()
      Prefix that is added to all plugin specific tags (except version filters!) in the feature file to categorize them under in the report
    • getVersionFilterTagCategory

      public String getVersionFilterTagCategory()
      Prefix that is added to all version filter tags in the feature file to categorize them under in the report
    • getVersionProperty

      public String getVersionProperty()
      The plugin will look for this property to determine the version of an item, may be set to an arbitrary string, default is "version"