meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sap_hybris_commerce:development_process:systemsetup_annotation_when_methods_run [2020/04/10 12:38] – uploaded sourcecode Antonio Robirosa | sap_hybris_commerce:development_process:systemsetup_annotation_when_methods_run [2020/04/10 14:03] (current) – Document the hybris classes Antonio Robirosa | ||
---|---|---|---|
Line 3: | Line 3: | ||
The SystemSetup annotation is used to run import data, synchronize catalogues, migrate CMS components and execute Java code during **every** project or essential data creation step. | The SystemSetup annotation is used to run import data, synchronize catalogues, migrate CMS components and execute Java code during **every** project or essential data creation step. | ||
- | **In all hybris version up to 1905 the essential and project data steps aren't run during the initialization of the junit tenant.** This prevented | + | **In all hybris version up to 1905 the essential and project data steps aren't run during the initialization of the junit tenant.** This prevents |
^SystemSetup.Process^INIT^^^UPDATE^^^ALL^^^.^ | ^SystemSetup.Process^INIT^^^UPDATE^^^ALL^^^.^ | ||
Line 18: | Line 18: | ||
<WRAP center round important 60%> | <WRAP center round important 60%> | ||
- | Because the mayority | + | Because the majority |
</ | </ | ||
+ | ===== Cause of this behaviour ===== | ||
+ | |||
+ | The method de.hybris.ant.taskdefs.InitPlatformAntPerformableImpl# | ||
===== Test description ===== | ===== Test description ===== | ||
Line 34: | Line 37: | ||
} | } | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important |
To make hybris call the methods, I had to create a bean definition in the spring application context. Autowiring without the XML bean definition wasn't working. | To make hybris call the methods, I had to create a bean definition in the spring application context. Autowiring without the XML bean definition wasn't working. | ||
+ | </ | ||
<code xml> | <code xml> | ||
<bean id=" | <bean id=" | ||
</ | </ | ||
- | </ | + | |
I created a JSON configuration for the update running system which runs the create project data step: {{ : | I created a JSON configuration for the update running system which runs the create project data step: {{ : |