我正在运行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
。
提前感谢您的帮助。