AutoGenerate_Package.xml_Ant icon indicating copy to clipboard operation
AutoGenerate_Package.xml_Ant copied to clipboard

Error when trying to list Metadata

Open tgentet-obrien opened this issue 10 years ago • 5 comments

Hey,

I keep on getting an error when trying to run this on a SF instance:

BUILD FAILED
/Users/timothygentet-obrien/sf_ant/generateXML/GeneratePackage_xml.xml:211: The following error occurred while executing this line:
/Users/timothygentet-obrien/sf_ant/generateXML/GeneratePackage_xml.xml:157: The following error occurred while executing this line:
/Users/timothygentet-obrien/sf_ant/generateXML/GeneratePackage_xml.xml:81: Problem: failed to create task or type antlib:com.salesforce:listMetadata
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:
        -/Users/timothygentet-obrien/Applications/ant/lib
        -/Users/timothygentet-obrien/.ant/lib
        -a directory added on the command line with the -lib argument


Total time: 0 seconds

Could it be because I am using a Mac?

tgentet-obrien avatar Dec 10 '15 12:12 tgentet-obrien

Can you confirm if Salesforce Metadata jar file is in path ? It seems searching for Metadata tool from Salesforce

JitendraZaa avatar Dec 19 '15 17:12 JitendraZaa

I am getting the same error...all the config is as per instructions...

sghparam avatar Jan 24 '16 23:01 sghparam

Please make sure Metadata API jar file from Salesforce is in class path.

JitendraZaa avatar Jan 25 '16 04:01 JitendraZaa

Can you please suggest how to dynamically generate package.xml based on the commits in github by passing commit id?

ghost avatar Dec 26 '17 12:12 ghost

I met the same question, I put the ant-salesforce.jar into %ant_home%/lib, then, I can run this program.

FeiyangGao avatar Jan 18 '18 13:01 FeiyangGao