1+ <project xmlns : sf =" antlib:com.salesforce" basedir =" ." xmlns : git =" antlib:com.rimerosolutions.ant.git" default =" deploy" >
2+
3+ <property name =" sf.server" value =" https://login.salesforce.com" />
4+ <import file =" ${ basedir } /lib/exec_anon.xml" />
5+ <import file =" ${ basedir } /lib/undeploy.xml" />
6+
7+ <!-- Downloaded from Salesforce Tools page under Setup -->
8+ <typedef
9+ uri=" antlib:com.salesforce"
10+ resource=" com/salesforce/antlib.xml"
11+ classpath=" ${ basedir } /lib/ant-salesforce.jar" />
12+
13+ <!-- See https://github.com/rimerosolutions/ant-git-tasks -->
14+ <taskdef uri =" antlib:com.rimerosolutions.ant.git"
15+ resource =" com/rimerosolutions/ant/git/jgit-ant-lib.xml" >
16+ <classpath >
17+ <pathelement location =" ${ basedir } /lib/org.eclipse.jgit.ant-3.0.0.201306101825-r.jar" />
18+ <pathelement location =" ${ basedir } /lib/org.eclipse.jgit-3.0.0.201306101825-r.jar" />
19+ <pathelement location =" ${ basedir } /lib/jsch-0.1.50.jar" />
20+ <pathelement location =" ${ basedir } /lib/ant-git-tasks-0.0.1.jar" />
21+ </classpath >
22+ </taskdef >
23+
24+ <!-- Deploy -->
25+ <target name =" deploy" depends =" undeploy" >
26+
27+ <!-- Download and deploy ApexMocks -->
28+ <delete dir =" ${ basedir } /lib/apexmocks" />
29+ <echo message =" Cloning fflib-apex-mocks..." />
30+ <git : git directory =" ${ basedir } /lib/apexmocks" verbose =" false" >
31+ <git : clone uri =" https://github.com/financialforcedev/fflib-apex-mocks.git" />
32+ </git : git >
33+ <sf : deploy
34+ username =" ${ sf.username } "
35+ password =" ${ sf.password } "
36+ serverurl =" ${ sf.server } "
37+ testLevel =" RunLocalTests"
38+ deployRoot =" ${ basedir } /lib/apexmocks/src" />
39+
40+ <!-- Deploy Apex Commons -->
41+ <sf : deploy
42+ username =" ${ sf.username } "
43+ password =" ${ sf.password } "
44+ serverurl =" ${ sf.server } "
45+ testLevel =" RunLocalTests"
46+ deployRoot =" ${ basedir } /fflib/src" />
47+
48+ </target >
49+
50+ </project >
0 commit comments