Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7881

Unable to use importBuild

    XMLWordPrintableJSON

    Details

    • Type: Question
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.4.7
    • Fix Version/s: None
    • Component/s: Groovy Console
    • Labels:
      None
    • Environment:
      Mac OS El Capitan

      Description

      Hello,
      I am unable to run this script in Groovy Console:

      import groovy.util.AntBuilder
       AntBuilder ant = new AntBuilder()
       ant.importBuild 'build.xml'
      

      It gives me an error:
      > Problem: failed to create task or type importBuild
      Cause: The name is undefined.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              IgorGanapolsky Igor Ganapolsky
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: