Class CodeRemoverContributor
java.lang.Object
ch.admin.bit.jeap.initializer.contributor.CodeRemoverContributor
- All Implemented Interfaces:
ProjectContributor,org.springframework.core.Ordered
This Contributor removes all code blocks that should not be part of generated projects, for instance:
// START INITIALIZER DELETE ... // END INITIALIZER DELETE
invalid input: '<'!-- START INITIALIZER DELETE --> invalid input: '<'!-- END INITIALIZER DELETE -->
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionCodeRemoverContributor(JeapInitializerProperties properties) CodeRemoverContributor(String blockName, Pattern sourceFilesPattern) -
Method Summary
Modifier and TypeMethodDescriptionvoidcontribute(Path projectRoot, ProjectRequest projectRequest, ProjectTemplate template) This method will be called after the initial code has been checked out from Git.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.admin.bit.jeap.initializer.contributor.ProjectContributor
getOrder
-
Constructor Details
-
CodeRemoverContributor
-
CodeRemoverContributor
-
-
Method Details
-
contribute
Description copied from interface:ProjectContributorThis method will be called after the initial code has been checked out from Git. Your custom logic has to be implemented here and should do the required changes to files and folders under 'projectRoot'The ordering of execution can be set by overriding the getOrder() method.
- Specified by:
contributein interfaceProjectContributor- Parameters:
projectRoot- a Path containing the root project folderprojectRequest- the project request containing the input datatemplate- the project template
-