-
Notifications
You must be signed in to change notification settings - Fork 3
/
buildcallbacks.xml
37 lines (34 loc) · 1.55 KB
/
buildcallbacks.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0"?>
<project name="firefly_buildcallbacks">
<target name="firefly-simulate" description="Looks for changes that need to be executed." depends="firefly-tenant">
<echo level="info">[Firefly] Starting simulation - no changed will be applied to the system</echo>
<yrun>
new de.neuland.firefly.ant.SimulateAntTask("${tenant}").doPerform();
de.hybris.platform.util.RedeployUtilities.shutdown();
</yrun>
</target>
<target name="firefly-update" description="Starts a firefly update process." depends="firefly-tenant">
<echo level="info">[Firefly] Starting update - lean back and enjoy a smooth data migration</echo>
<yrun>
new de.neuland.firefly.ant.UpdateAntTask("${tenant}").doPerform();
de.hybris.platform.util.RedeployUtilities.shutdown();
</yrun>
</target>
<target name="firefly-baseline" description="Sets a baseline for firefly." depends="firefly-tenant">
<echo level="info">[Firefly] Setting baseline - a initial database update may be needed to setup firefly</echo>
<yrun>
new de.neuland.firefly.ant.BaselineAntTask("${tenant}").doPerform();
de.hybris.platform.util.RedeployUtilities.shutdown();
</yrun>
</target>
<target name="firefly-tenant">
<if>
<not>
<isset property="tenant"/>
</not>
<then>
<input message="Enter valid tenant" addproperty="tenant"/>
</then>
</if>
</target>
</project>