build.xml:122: Problem: failed to create task or type antlib:com.salesforce:retrieve
Issue
- We are setting up our release automation server and we are running into issues when using Ant from a command line. There is a salesforce provided JAR file called "ant-salesforce.jar" that is not being recognized.
BUILD FAILED
/usr/local/sf-build/foo/build.xml:122: Problem: failed to create task or type antlib:com.salesforce:retrieve
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.
No types or tasks have been defined in this namespace yet
This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-/usr/share/ant/lib
-/root/.ant/lib
Environment
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
