You need to sign in to do that
Don't have an account?
TehNrd
Need help deploying with ANT
Due to some other issues (http://community.salesforce.com/sforce/board/message?board.id=apex&thread.id=8720 , http://community.salesforce.com/sforce/board/message?board.id=apex&message.id=8138 ) I am unable to deploy code with the Eclipse Force.com toolkit.
I have looked over the ant documentation but to be honest I need it dumbed down a little....errr maybe a lot.
- I have installed ant here: c:\ant
- I have placed the ant-salesforce.jar file here: c:\ant\lib
Now I am supposed to set the environment variables (such as ANT_HOME, JAVA_HOME, and PATH) but I have no idea where I do this.
I think this is my correct Java directory: C:\Program Files\Java\jre1.6.0_07.
Once this is complete I'm still not sure how to proceed.
Thanks,
Jason
Message Edited by TehNrd on 10-14-2008 05:02 PM
I have looked over the ant documentation but to be honest I need it dumbed down a little....errr maybe a lot.
- I have installed ant here: c:\ant
- I have placed the ant-salesforce.jar file here: c:\ant\lib
Now I am supposed to set the environment variables (such as ANT_HOME, JAVA_HOME, and PATH) but I have no idea where I do this.
I think this is my correct Java directory: C:\Program Files\Java\jre1.6.0_07.
Once this is complete I'm still not sure how to proceed.
Thanks,
Jason
Message Edited by TehNrd on 10-14-2008 05:02 PM
1. From the My Computer icon on your desktop, right-click and select Properties
2. In the System Properties dialog, select the Advanced tab and click Environment Variables
3. In the Environment Variables dialog, "User variables" only apply to the current user, and "System variables" are global for all users. You must decide which is appropriate. (User variables override or are concatenated with system variables.)
4. Use the New button to add variables for ANT_HOME and JAVA_HOME.
5. You probably have a PATH variable defined already. Highlight this row and click Edit to add more folders to your path.
To test, run CMD.EXE and type "set". This displays all the current environment variables and their values.
"Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.6.0_07\lib\tools.jar
Message Edited by TehNrd on 10-15-2008 10:02 AM
In the build.xml file there is this:
Where it points to a folder "codepkg" does this folder need to include all of the components that are currently in the target instance or only the new class, triggers, pages that you are trying to deploy.
Thanks.
Message Edited by TehNrd on 10-15-2008 10:11 AM
Also, the build.xml file and folders in the Force.com Migration Tool are just samples. You can probably get by with little to no changes, but the intention is for you to construct your own build.xml file so you don't have to rigidly use the same targets, folder names, etc., that we provide in the zip file. (Of course, you're welcome to do so if they meet your needs as-is.)
build.properties
build.xml
package.xml
Here is my file structure:
deploy (folder)
|--- deployTest (folder)
|--- classes (folder)
| |--- accountSiteTEST.cls
| |--- accountSiteTEST.cls-meta.xml
|--- triggers (folder)
| |--- accountSite.trigger
| |--- accountSite.trigger-meta.xml
|--- package.xml
|--- build.properties
|--- build.xml
I probably messed up the build.properties file but I'm not sure where to set these attributes.
Message Edited by TehNrd on 10-16-2008 11:53 AM
Hi,
I am new for Ant force.com migration tool.I followed Force.com Migration tool pdf .But i have so many doubts on that.I understand upto build.property file connection . can u send me detailed information about migration.
Thanks
Padsfdc
Hi,
I am trying to setup CI using Jenkins(cloudbees.com), When i try to deploy using migration tollkit on command prompt build successful, But if i configure in jenkins then i am getting the time out error
<project name="salesforce" basedir="." xmlns:sf="antlib:com.salesforce">
<property file="build.properties"/>
<property environment="env"/>
<target name="deployCode">
<sf:deploy username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" logType="Detail" checkOnly="true" runAllTests="true" deployRoot="src"/>
</target>
<target name="undeployCode">
<sf:deploy username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" deployRoot="undeploy"/>
</target>
</project>
build.properties
sf.username = myusername
sf.password = mypassword with Security token
sf.serverurl = https://login.salesforce.com
sf.pollWaitMillis = 100000000000000000000
sf.maxPoll = 10000000000000