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

Unable to use importBuild

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.4.7
    • None
    • Groovy Console
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: