Forum Discussion

Frank_Garber's avatar
Frank_Garber
New Contributor
16 years ago

Groovy script w/ dynamic closure?

Is it possible to dynamically build a string to be used as a closure? Take a look at this contrived example. Source code: def commandString = 'println "Hello, world..." + new Date()'; def command...