Package de.gematik.prepare
Class PrepareItemsMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- de.gematik.prepare.PrepareItemsMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="prepare-items", defaultPhase=GENERATE_TEST_SOURCES) public class PrepareItemsMojo extends org.apache.maven.plugin.AbstractMojoPlugin for filling empty gherkin tables with generated combinations
-
-
Field Summary
Fields Modifier and Type Field Description static StringGENERATED_COMBINE_ITEMS_DIRPath to the directory where the combined items get stored
-
Constructor Summary
Constructors Constructor Description PrepareItemsMojo(ApiRequester apiRequester)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckExpressionSetCorrectly()voidexecute()static PrepareItemsMojogetInstance()static org.apache.maven.plugin.logging.LoggetPluginLog()protected voidrun()voidsetClientCertStore(String clientCertStore)Path to truststorevoidsetClientCertStorePw(String clientCertStorePw)Path to truststorevoidsetCombineItemsFile(String combineItemsFile)Path to file that contains the values to combinevoidsetInfoResourceLocation(String infoResourceLocation)Location to infostatic voidsetInstance(PrepareItemsMojo instance)voidsetItems(List<CombineItem> items)voidsetItemsCreator(ItemsCreator itemsCreator)voidsetPropertyExpressions(List<PropertyExpression> propertyExpressions)List of Expressions that set as propertyvoidsetTagExpressions(List<TagExpression> tagExpressions)Expression and tag to set if expression is truevoidsetTruststore(String truststore)Path to truststorevoidsetTruststorePw(String truststorePw)Path to truststore
-
-
-
Field Detail
-
GENERATED_COMBINE_ITEMS_DIR
public static final String GENERATED_COMBINE_ITEMS_DIR
Path to the directory where the combined items get stored
-
-
Constructor Detail
-
PrepareItemsMojo
@Inject public PrepareItemsMojo(ApiRequester apiRequester)
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
checkExpressionSetCorrectly
protected void checkExpressionSetCorrectly() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
run
protected void run()
-
getPluginLog
public static org.apache.maven.plugin.logging.Log getPluginLog()
-
setCombineItemsFile
public void setCombineItemsFile(String combineItemsFile)
Path to file that contains the values to combine
-
setInfoResourceLocation
public void setInfoResourceLocation(String infoResourceLocation)
Location to info
-
setTagExpressions
public void setTagExpressions(List<TagExpression> tagExpressions)
Expression and tag to set if expression is true
-
setPropertyExpressions
public void setPropertyExpressions(List<PropertyExpression> propertyExpressions)
List of Expressions that set as property
-
setTruststore
public void setTruststore(String truststore)
Path to truststore
-
setTruststorePw
public void setTruststorePw(String truststorePw)
Path to truststore
-
setClientCertStore
public void setClientCertStore(String clientCertStore)
Path to truststore
-
setClientCertStorePw
public void setClientCertStorePw(String clientCertStorePw)
Path to truststore
-
setItemsCreator
public void setItemsCreator(ItemsCreator itemsCreator)
-
setItems
public void setItems(List<CombineItem> items)
-
getInstance
public static PrepareItemsMojo getInstance()
-
setInstance
public static void setInstance(PrepareItemsMojo instance)
-
-