SHARE
TWEET

Untitled

a guest Aug 12th, 2016 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <project name="Test Package Creation" default="test" basedir="." xmlns:sf="antlib:com.salesforce">
  2.  
  3.     <property file="build.properties"/>
  4.     <property environment="env"/>
  5.  
  6.     <!-- Setting default value for username, password and session id properties to empty string
  7.          so unset values are treated as empty. Without this, ant expressions such as ${sf.username}
  8.          will be treated literally.
  9.     -->
  10.     <condition property="sf.username" value=""> <not> <isset property="sf.username"/> </not> </condition>
  11.     <condition property="sf.password" value=""> <not> <isset property="sf.password"/> </not> </condition>
  12.     <condition property="sf.sessionId" value=""> <not> <isset property="sf.sessionId"/> </not> </condition>
  13.  
  14.     <taskdef resource="com/salesforce/antlib.xml" uri="antlib:com.salesforce">
  15.         <classpath>
  16.             <pathelement location="../ant-salesforce.jar" />            
  17.         </classpath>
  18.     </taskdef>
  19.  
  20.  
  21.     <target name="deploypkg">
  22.         <installPackage version="1.0" namespace="ns" username="${sf.username}" password="${sf.password}" sessionId="${sf.sessionId}" serverurl="${sf.serverurl}" />
  23.     </target>
  24. </project>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top