You need to sign in to do that
Don't have an account?
collinb
Migration Tool Issues
Hi, I'm new to the Migration Tool and am finding it difficult to get working. I have been through the guides and can't find any help on the problem I'm having.
This is the error I am receiving:
Macintosh-3:DevGuide collinbrown$ ant
Buildfile: build.xml
InitUsers:
BUILD FAILED
/Users/collinbrown/Documents/BACR/Salesforce/DevGuide/build.xml:170: Problem: failed to create task or type antlib:com.salesforce:deploy
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-/usr/share/ant/lib
-/Users/collinbrown/.ant/lib
-a directory added on the command line with the -lib argument
Total time: 0 seconds
Any help will be greatly appreciated!
Collin
Ok, I figured it out!
I don't know if its the right way to do it, but it works.
In a terminal(MAC), I declared the path for the lib when I ran the target.
It looked like this:
Macintosh-3:DevGuide collinbrown$ ant -lib /Applications/eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib Chapter3
Thanks for all your help!
All Answers
I'm sorry, I forgot to mention that I'm working with Eclipse. Ant was installed with that software, and I copied the ant-salesforce.jar to this path: /Applications/eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib
does this change anything?
Thanks
Ok, I figured it out!
I don't know if its the right way to do it, but it works.
In a terminal(MAC), I declared the path for the lib when I ran the target.
It looked like this:
Macintosh-3:DevGuide collinbrown$ ant -lib /Applications/eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib Chapter3
Thanks for all your help!
Awesome post. This post helped me in setting up ANT, as I am too new in Software field!! Thankyou akhilesh_sfdc!!
I had installed Ant via homebrew, so that probably had to do with why all of the instructions from Salesforce's website references paths I didn't have on my system.