-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.xml
43 lines (35 loc) · 1.37 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
<project basedir="." xmlns:sf="antlib:com.salesforce">
<taskdef resource="com/salesforce/antlib.xml"
classPath="ant-salesforce.jar"
uri="antlib:com.salesforce"/>
<property environment="env"/>
<target name="refresh">
<sf:retrieve username="${env.USERNAME}"
password="${env.PASSWORD}"
serverURL="${env.SERVER_URL}"
retrieveTarget="src"
unpackaged="src/package.xml"/>
</target>
<target name="refreshFromPackage">
<sf:retrieve username="${env.USERNAME}"
password="${env.PASSWORD}"
serverURL="${env.SERVER_URL}"
retrieveTarget="src"
packageNames="${env.PACKAGE}"/>
</target>
<target name="test">
<sf:deploy checkOnly="true"
username="${env.USERNAME}"
password="${env.PASSWORD}"
serverURL="${env.SERVER_URL}"
testLevel="RunLocalTests"
deployroot="src"/>
</target>
<target name="deploy">
<sf:deploy checkOnly="false"
username="${env.USERNAME}"
password="${env.PASSWORD}"
serverURL="${env.SERVER_URL}"
deployroot="src"/>
</target>
</project>