groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daniel_sun <realblue...@hotmail.com>
Subject About the syntax of groovy
Date Fri, 30 Oct 2015 16:53:50 GMT
Hi all, 

     Could you tell me the following gradle code comply with the syntax of
groovy?  The 'task' can be a method, what about 'taskA' and '<<'?  Thanks in
advance. 

task taskA << { 
    println "i'm task A" 
} 

----------- my experimental code, but failed with exceptions
----------------- 
def task(t) { 
    t() 
} 

task taskA << { 
    println "i'm task A" 
} 
================= 
groovy.lang.MissingPropertyException: No such property: taskA for class:
ConsoleScript8 

        at ConsoleScript8.run(ConsoleScript8:5) 
----------------------------



--
View this message in context: http://groovy.329449.n5.nabble.com/About-the-syntax-of-groovy-tp5729026.html
Sent from the Groovy Users mailing list archive at Nabble.com.

Mime
View raw message