Sha256: 81d7ad31cee113765aaa87f1f8e093f5babcbcf1ee002a98c6e9ddd12f8d9d90

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

<project name="Sample usage of Salesforce Ant tasks" default="test" basedir="." xmlns:sf="antlib:com.salesforce">

    <property environment="env"/>

    <target name="<%= target.gsub(' ','') %>">
      <sf:<%= target.match(/deploy|check/) ? 'deploy' : 'retrieve'%>
        maxPoll="200" 
        username="${env.SF_USERNAME}" 
        password="${env.SF_PASSWORD}" 
        serverurl="${env.SF_SERVERURL}" 
<% if target.match(/retrieve/) -%>
        retrieveTarget="${env.SF_SRC_DIR}"
        unpackaged="${env.SF_SRC_DIR}/package.xml"
<% end -%>
<% if target.match(/deploy|check/) -%>
        deployRoot="${env.SF_SRC_DIR}" 
        rollbackOnError="true" 
<% end -%>
<% if @check_only -%>
        checkOnly="true"
<% end -%>
<% if @run_all_tests -%>
        runAllTests="true" 
<% end -%>
<% if !@run_tests.empty? -%>
        testLevel="RunSpecifiedTests"
<% end -%>
<% if !@check_only -%>
<% end -%>
        >
<% @run_tests.each do |test| -%>
      <runTest><%= test %></runTest>
<% end -%>
      </sf:<%= target.match(/deploy|check/) ? 'deploy' : 'retrieve'%>>
    </target>

</project>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
salesforce-deploy-tool-3.3.1 tpl/build.xml.erb