Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ant 甘特的问题_Ant_Groovy_Gant - Fatal编程技术网

Ant 甘特的问题

Ant 甘特的问题,ant,groovy,gant,Ant,Groovy,Gant,我在努力 Ant.echo("hello gant") 但我收到了以下错误消息: 类:build没有这样的属性:Ant 非常感谢您的帮助。在groovy中,您首先需要创建AntBuilder类的实例。以下代码起作用: def ant = new AntBuilder() ant.echo("Hello world") 在groovy中,首先需要创建AntBuilder类的实例。以下代码起作用: def ant = new AntBuilder() ant.echo("Hello worl

我在努力

Ant.echo("hello gant")
但我收到了以下错误消息:

类:build没有这样的属性:Ant


非常感谢您的帮助。

在groovy中,您首先需要创建AntBuilder类的实例。以下代码起作用:

def ant = new AntBuilder()

ant.echo("Hello world")

在groovy中,首先需要创建AntBuilder类的实例。以下代码起作用:

def ant = new AntBuilder()

ant.echo("Hello world")

实际上,在grails中,默认情况下ant是可用的

ant.echo("hello gant") ant.echo(“你好,甘特”)
您只需要在“ant”中使用小写的“a”并运行它。这应该可以正常工作。

实际上在grails中,默认情况下ant是可用的

ant.echo("hello gant") ant.echo(“你好,甘特”)
您只需要在“ant”中使用小写的“a”并运行它。这应该行得通。

甘特也注射了“蚂蚁”自身

甘特也注射了“蚂蚁”自身

这个问题的简单答案就是将ant.echo改为ant.echo,或者直接省略“ant.”和“echo”。它将调用ant.echo


另一种情况通常会导致此问题,即当我们定义属性时。不要使用像“ant.lib.path”、“xx.xx.xx”这样的属性名,它在甘特图中不起作用,甘特图会将“lib”视为“ant”的属性,“path”是“lib”的属性,这是不正确的,请使用“antLibPath”形式

这个问题的简短答案是将Ant.echo更改为Ant.echo,或者直接省略“Ant.”和“echo”。它将调用ant.echo

另一种情况通常会导致此问题,即当我们定义属性时。不要使用像“ant.lib.path”、“xx.xx.xx”这样的属性名,它在甘特图中不起作用,甘特图会将“lib”视为“ant”的属性,“path”是“lib”的属性,这是不正确的,请使用“antLibPath”形式