forked from palaniraja/iForce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iForce_build.xml
39 lines (34 loc) · 1.34 KB
/
iForce_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
<project default="env" basedir="." xmlns:sf="antlib:com.salesforce">
<property file="build.properties"/>
<property environment="env"/>
<target name="env" description="Prints build parameters">
<echo>
Global settings:
username = ${username}
password = ${password}
serverurl = ${serverurl}
debuglevel = ${debuglevel}
</echo>
</target>
<!-- quickcompile -->
<target name="qcompile">
<sf:deploy username="${username}" password="${password}" serverurl="${serverurl}" deployRoot="payload"></sf:deploy>
</target>
<!-- quicktest -->
<target name="qtest">
<record name="testAllClasses.debug" action="start" append="false" />
<sf:deploy username="${username}" password="${password}" serverurl="${serverurl}" deployRoot="test" checkOnly="true" logType="${debuglevel}" runAllTests="true"></sf:deploy>
<record name="testAllClasses.debug" action="stop" />
</target>
<!-- refresh from server -->
<target name="getLatest">
<sf:retrieve
username="${username}"
password="${password}"
serverurl="${serverurl}"
retrieveTarget="./"
pollWaitMillis="10000"
maxPoll="100"
unpackaged="./package.xml"/>
</target>
</project>