Package de.gematik.combine
Class CombineMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- 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 org.apache.maven.plugin.AbstractMojoPlugin for filling empty gherkin tables with generated combinations
-
-
Field Summary
Fields Modifier and Type Field Description static StringEMPTY_EXAMPLES_TABLE_TAGstatic StringTEST_RESOURCES_DIRstatic StringWIP_TAG
-
Constructor Summary
Constructors Constructor Description CombineMojo(FileProcessor replacer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Collection<File>allFiles(String dir, String ending)static voidcopyFiles(String from, String to, String ending)voidexecute()voidexecute(CombineConfiguration config)static CombineMojogetInstance()static org.apache.maven.plugin.logging.LoggetPluginLog()voidsetCombineItemsFile(String combineItemsFile)Path to file that contains the values to combinevoidsetDefaultExamplesTags(List<String> defaultExamplesTags)List of tags that are added to each processed examples tablevoidsetEmptyExamplesTags(List<String> emptyExamplesTags)The plugin will add these tags to all examples tables where it was not able to add at least one rowvoidsetEnding(String ending)The specific ending of the templatesvoidsetFilterConfiguration(FilterConfiguration filterConfiguration)filterConfigurationstatic voidsetInstance(CombineMojo instance)voidsetOutputDir(String outputDir)Path to the directory where the rendered templates got storedvoidsetPluginTagCategory(String pluginTagCategory)Prefix that is added to all plugin specific tags in the feature file to categorize them under in the reportvoidsetSkipTags(List<String> skipTags)List of tags that are skipped by this pluginvoidsetTemplateDir(String templateDir)Path to the directory of the templatesstatic FilestripEnding(File file, String ending)
-
-
-
Field Detail
-
EMPTY_EXAMPLES_TABLE_TAG
public static final String EMPTY_EXAMPLES_TABLE_TAG
- See Also:
- Constant Field Values
-
WIP_TAG
public static final String WIP_TAG
- See Also:
- Constant Field Values
-
TEST_RESOURCES_DIR
public static final String TEST_RESOURCES_DIR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CombineMojo
@Inject public CombineMojo(FileProcessor replacer)
-
-
Method Detail
-
execute
public void execute()
-
execute
public void execute(CombineConfiguration config)
-
allFiles
public static Collection<File> allFiles(String dir, String ending)
-
getPluginLog
public static org.apache.maven.plugin.logging.Log getPluginLog()
-
setOutputDir
public void setOutputDir(String outputDir)
Path to the directory where the rendered templates got stored
-
setTemplateDir
public void setTemplateDir(String templateDir)
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
-
setPluginTagCategory
public void setPluginTagCategory(String pluginTagCategory)
Prefix that is added to all plugin specific tags in the feature file to categorize them under in the report
-
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)
filterConfiguration
-
getInstance
public static CombineMojo getInstance()
-
setInstance
public static void setInstance(CombineMojo instance)
-
setCombineItemsFile
public void setCombineItemsFile(String combineItemsFile)
Path to file that contains the values to combine
-
-