0

我正在运行 ant,但在获取我需要的 jar 文件时遇到了问题。

[kyle@infosys salesforce-git]$ jar tf /usr/share/ant/lib/ant-salesforce.jar | grep antlib
com/salesforce/antlib.xml

运行我的脚本,我得到以下输出和错误:

bulkRetrieveAll:
     [echo] **Bulk Retrieve**
     [echo] ANT_HOME=/usr/share/ant
     [echo] BASEDIR=/home/kyle/information-systems/salesforce-git
     [echo] ANT_CORE_LIB=/usr/share/java/ant.jar
     [echo] JAVA_VERSION=1.7
     [echo] ANT_LIBRARY_DIR=/usr/share/ant/lib
     [echo] classpath=/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/share/java/ant/ant-contrib.jar:/usr/lib/jvm/java/lib/tools.jar:/usr/share/ant/lib/ant-bootstrap.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/ant/lib/ant-salesforce.jar
[antlib:com.salesforce] Could not load definitions from resource com/salesforce/antlib.xml. It could not be found.
BUILD FAILED
/home/kyle/information-systems/salesforce-git/build.xml:16: Problem: failed to create task or type antlib:com.salesforce:bulkRetrieve
Cause: The name is undefined.

我的 build.xml 看起来像这样: ...

它在 sf:bulkRetrieve 行上出错,但我不确定下一步该去哪里。我已经仔细检查了 xmlns 行,甚至尝试ant -lib ant-salesforce.jar bulkRetrieveAll以相同的结果运行。

提前谢谢你的帮助。

4

0 回答 0