You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2016/07/07 09:18:11 UTC
[jira] [Commented] (GROOVY-7881) Unable to use importBuild
[ https://issues.apache.org/jira/browse/GROOVY-7881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15365859#comment-15365859 ]
Paul King commented on GROOVY-7881:
-----------------------------------
{{importBuild}} is a gradle feature, not part of Groovy's AntBuilder. What are you actually trying to do with the build.xml file? Perhaps you want to use Ant's {{ant}} task?
> Unable to use importBuild
> -------------------------
>
> Key: GROOVY-7881
> URL: https://issues.apache.org/jira/browse/GROOVY-7881
> Project: Groovy
> Issue Type: Question
> Components: Groovy Console
> Affects Versions: 2.4.7
> Environment: Mac OS El Capitan
> Reporter: Igor Ganapolsky
> Priority: Minor
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)