-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
executable file
·48 lines (40 loc) · 2.47 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
<project name="Affiliation Templates" default="test" basedir="." xmlns:sf="antlib:com.salesforce">
<property file="build.properties"/>
<property environment="env"/>
<!-- Setting default value for username, password and session id properties to empty string
so unset values are treated as empty. Without this, ant expressions such as ${sf.username}
will be treated literally.
-->
<condition property="sf.username" value=""> <not> <isset property="sf.username"/> </not> </condition>
<condition property="sf.password" value=""> <not> <isset property="sf.password"/> </not> </condition>
<condition property="sf.sessionId" value=""> <not> <isset property="sf.sessionId"/> </not> </condition>
<taskdef resource="com/salesforce/antlib.xml" uri="antlib:com.salesforce">
<classpath>
<pathelement location="ant-salesforce.jar" />
</classpath>
</taskdef>
<target name="deployHEDAUnmanaged">
<sf:deploy username="${sf.username}" password="${sf.password}" sessionId="${sf.sessionId}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" deployRoot="HEDAUnmanaged" testLevel="RunSpecifiedTests" rollbackOnError="true">
<runTest>AFFL_Template_TEST</runTest>
<runTest>AFFLTMP_Template_TEST</runTest>
<runTest>UTIL_AffiliationTemplate_TEST</runTest>
</sf:deploy>
</target>
<target name="deployHEDAManaged">
<sf:deploy username="${sf.username}" password="${sf.password}" sessionId="${sf.sessionId}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" deployRoot="HEDAManaged" testLevel="RunSpecifiedTests" rollbackOnError="true">
<runTest>AFFL_Template_TEST</runTest>
<runTest>AFFLTMP_Template_TEST</runTest>
<runTest>UTIL_AffiliationTemplate_TEST</runTest>
</sf:deploy>
</target>
<target name="deployNPSP">
<sf:deploy username="${sf.username}" password="${sf.password}" sessionId="${sf.sessionId}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" deployRoot="NPSP" testLevel="RunSpecifiedTests" rollbackOnError="true">
<runTest>AFFL_Template_TEST</runTest>
<runTest>AFFLTMP_Template_TEST</runTest>
<runTest>UTIL_AffiliationTemplate_TEST</runTest>
</sf:deploy>
</target>
<target name="undeploy" >
<sf:deploy username="${sf.username}" password="${sf.password}" sessionId="${sf.sessionId}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" deployRoot="undeploy" />
</target>
</project>