Skip to content

Instantly share code, notes, and snippets.

@arutnik
Created October 22, 2017 19:30
Show Gist options
  • Select an option

  • Save arutnik/e48bc73c5cd8a94dac55a806ff00ee97 to your computer and use it in GitHub Desktop.

Select an option

Save arutnik/e48bc73c5cd8a94dac55a806ff00ee97 to your computer and use it in GitHub Desktop.
SFA Part 2: build.xml
<project name="Standard Salesforce Build File" default="validate" basedir="." xmlns:sf="antlib:com.salesforce">
<property name="workingDir" location="." />
<property name="logFile" value="log/ant.log" />
<taskdef uri="antlib:com.salesforce"
resource="com/salesforce/antlib.xml"
classpath="${basedir}/lib/ant-salesforce.jar"/>
<target name="intro" >
<echo message=" Salesforce Deploy Script" />
<echo message=" Directory: ${workingDir}" />
</target>
<target name="localDevDeploy" depends="intro">
<property file="dev.sf" />
<sf:deploy
username="${sf.username}"
password="${sf.password}${sf.token}"
serverurl="${sf.url}"
deployRoot="src-dev-deploy"
checkOnly="false"
maxPoll="200"
pollWaitMillis="10000"
testLevel="NoTestRun"
rollbackOnError="true"
/>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment