[xwiki-users] Groovy problem
Hi, I'm starting to have a look at groovy scripting in xwiki and I have o problem that I don't understand it. More exactly: When I write the following code (it is from a book, "Programming Groovy") it doesn't display anything. It doesn't display the message from my function. If I write a simple instruction println "a text" then it display the text. It is something wrong with iterationDetails function ? enum Methodologies { Evo(5), XP(21), Scrum(30); final int daysInIteration Methodologies(days) { daysInIteration = days } def iterationDetails() { println "${this} recommends $daysInIteration days for iteration" } } for(methodology in Methodologies.values()) { methodology.iterationDetails() } -- View this message in context: http://n2.nabble.com/Groovy-problem-tp2440947p2440947.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (1)
-
RoxanaM