-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.xml
58 lines (53 loc) · 2.35 KB
/
build.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="utf-8"?>
<project name="SFDeltaDeployment" basedir="." default="cdn-invalidation">
<!-- Adding task definitions -->
<taskdef name="deltaDeployment"
classpath="lib/SalesforceAntTasks-with-dependencies.jar"
classname="sfanttasks.sfdeltadeployment.SFDeltaDeploymentTask" />
<taskdef name="addNegativePermisions"
classpath="libs/SalesforceAntTasks-with-dependencies.jar"
classname="sfanttasks.sfpermissionadjustments.SFNegativePermissionAdderTask" />
<taskdef name="metadataCleanup"
classpath="libs/SalesforceAntTasks-with-dependencies.jar"
classname="sfanttasks.sfmetadatacleanup.SFMetadataCleanupTask" />
<taskdef name="nodeSubstitution"
classpath="libs/SalesforceAntTasks-with-dependencies.jar"
classname="sfanttasks.sfnodesubstitution.SFNodeSubstitutionTask" />
<!-- Using the new task definitions -->
<target name="prepareDeltaDeployment">
<deltaDeployment deltaFolder="delta"
gitBaseDir="."
previousDeployment="v.1.0.1" />
<addNegativePermisions srcFolder="delta"
gitBaseDir="."
previousDeployment="v.1.0.1" />
<metadataCleanup srcFolder="delta" />
<nodeSubstitution srcFolder="delta">
<!-- always substitutes the objects fields unique attribute to 'true' -->
<always fileType="object" node="fields.unique" value="true" />
<!-- always substitutes the profiles objectPermissions allowCreate, allowDelete and fieldPermission editable to 'false' -->
<always fileType="profile" value="false">
<node>objectPermissions.allowCreate</node>
<node>objectPermissions.allowDelete</node>
<node name="fieldPermissions.editable" />
</always>
</nodeSubstitution>
</target>
<!-- Using the new task definitions with config files -->
<target name="prepareDeltaDeploymentWithConfigFiles">
<deltaDeployment
deltaFolder="delta"
destructiveFolder="destructiveChanges"
gitBaseDir="."
configFile="config/packageConfig.json"
previousDeployment="v.1.0.1" />
<addNegativePermisions
srcFolder="delta"
gitBaseDir="."
configFile="config/negativeConfig.json"
previousDeployment="v.1.0.1" />
<metadataCleanup
srcFolder="delta"
configFile="config/metadataCleanupConfig.json" />
</target>
</project>