Advertisement
Guest User

Untitled

a guest
Aug 12th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement