-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
34 lines (28 loc) · 1.21 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
<project basedir="." xmlns:sf="antlib:com.salesforce">
<taskdef resource="com/salesforce/antlib.xml"
classPath="lib/ant-salesforce.jar"
uri="antlib:com.salesforce"/>
<property environment="env"/>
<target name="deploy">
<echo message="Deploying..."/>
<sf:deploy username="${env.SALESFORCE_USERNAME}"
password="${env.SALESFORCE_PASSWORD}"
serverurl="${env.SALESFORCE_URL}"
deployRoot="src"/>
</target>
<target name="test" description="Test without saving to salesforce">
<echo message="Testing deployment..."/>
<sf:deploy username="${env.SALESFORCE_USERNAME}"
password="${env.SALESFORCE_PASSWORD}"
serverurl="${env.SALESFORCE_URL}"
deployRoot="src"
checkOnly="true"/>
</target>
<target name="refresh">
<sf:retrieve username="${env.SALESFORCE_USERNAME}"
password="${env.SALESFORCE_PASSWORD}"
serverurl="${env.SALESFORCE_URL}"
retrieveTarget="src"
packageNames="PivotalTracker Salesforce Integration"/>
</target>
</project>