This content has been marked as final.
Show 1 reply
-
1. Re: Smooks and Groovy import question
tfennelly Jun 3, 2011 8:02 AM (in response to bglasco1)Do you have schema based auto-completion in your IDE? Look at the schema for the groovy scripting extension and you'll see that it supports an <imports> element into which you drop the imports (just like in a java class): http://www.milyn.org/xsd/smooks/groovy-1.1.xsd
Example...
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:g="http://www.milyn.org/xsd/smooks/groovy-1.1.xsd"> <g:groovy executeOnElement="category"> <g:imports> import com.acme.blah.Blah; import groovy.time.*; </g:imports> <g:script> <!-- // Groovy scriptlet goes here... --> </g:script> </g:groovy> </smooks-resource-list>