Related posts

  • Param

    Hi Jitendra, I am getting the below error on execution, any idea why…?

    $ ANT testPackageXML

    Buildfile: c:git_localmy_devAutoGenerate_Package.xml_Antbuild.xml

    testPackageXML:

    [delete] Deleting: c:git_localmy_devAutoGenerate_Package.xml_AnttmpDataloadOrg.Package.xml.Snnipet.Dashboard

    [delete] Deleting: c:git_localmy_devAutoGenerate_Package.xml_AnttmpDataloadOrg.Package.xml.Snnipet.Report

    [delete] Deleting: c:git_localmy_devAutoGenerate_Package.xml_AnttmpDataloadOrg.Package.xml.Snnipet.EmailTemplate

    [delete] Deleting: c:git_localmy_devAutoGenerate_Package.xml_AnttmpDataloadOrg.Package.xml.Snnipet.Document

    [touch] Creating c:git_localmy_devAutoGenerate_Package.xml_AnttmpDataloadOrg.Package.xml.Snnipet.Dashboard

    [touch] Creating c:git_localmy_devAutoGenerate_Package.xml_AnttmpDataloadOrg.Package.xml.Snnipet.Report

    [touch] Creating c:git_localmy_devAutoGenerate_Package.xml_AnttmpDataloadOrg.Package.xml.Snnipet.EmailTemplate

    [touch] Creating c:git_localmy_devAutoGenerate_Package.xml_AnttmpDataloadOrg.Package.xml.Snnipet.Document

    BUILD FAILED

    c:git_localmy_devAutoGenerate_Package.xml_AntGeneratePackage_xml.xml:232: The following error occurred while executing this line:

    c:git_localmy_devAutoGenerate_Package.xml_AntGeneratePackage_xml.xml:176: The following error occurred while executing this line:

    c:git_localmy_devAutoGenerate_Package.xml_AntGeneratePackage_xml.xml:91: 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 / 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:

    -c:apache-ant-1.9.6lib

    -\myerhome1Userdirs$pasingh.antlib

    -a directory added on the command line with the -lib argument

    Total time: 0 seconds

    • Deepak Roy

      Hi Param, Were you able to resolve the issue?

  • sneh

    Hi Jitendra,

    I find your posts very helpful. I have a question here regarding the automation of deployment,

    I have developed an ant script which will copy latest modified files to a tempfolder and from there it will use a package.xml file which will have each and every component to deploy to destination org. can you guide me how can I accomodate this approach with my ant code? I can also get the file names which are in my tempfolder.

    Process currently following : Ant will look into eclipse local project folder and get latest modified files to a tempfolder.
    – Ant will go back to the source directory with the filenames copied into temp folder and get -meta.xml file if it exsits.
    – here I also want to create a package.xml on the fly using your approach.
    Please guide how can I combine? what would be the best way. Thank you so much for your help.