Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <project name="Test Package Creation" default="test" basedir="." xmlns:sf="antlib:com.salesforce">
- <property file="build.properties"/>
- <property environment="env"/>
- <!-- Setting default value for username, password and session id properties to empty string
- so unset values are treated as empty. Without this, ant expressions such as ${sf.username}
- will be treated literally.
- -->
- <condition property="sf.username" value=""> <not> <isset property="sf.username"/> </not> </condition>
- <condition property="sf.password" value=""> <not> <isset property="sf.password"/> </not> </condition>
- <condition property="sf.sessionId" value=""> <not> <isset property="sf.sessionId"/> </not> </condition>
- <taskdef resource="com/salesforce/antlib.xml" uri="antlib:com.salesforce">
- <classpath>
- <pathelement location="../ant-salesforce.jar" />
- </classpath>
- </taskdef>
- <target name="deploypkg">
- <installPackage version="1.0" namespace="ns" username="${sf.username}" password="${sf.password}" sessionId="${sf.sessionId}" serverurl="${sf.serverurl}" />
- </target>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement