Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] problem with GStringTemplateEngine and how to debug gdk

Vlad Ciubotariu

2008-08-21

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi all,

GStringTemplateEngine has a problem with double quotes in templates.

Here's an example, one line templates:

<%=[1,2,3].join(" ")%>

works.

${[1,2,3].join(' ')}

works.

but

${[1,2,3].join(" ")} doesnt work, produces


org.eclipse.core.runtime.CoreException[0]:
org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed, C: 2: unexpected char: '\' @ line 2, column 97.
1 error


I think GStringTemplateEngine adds \ to quote the double quotes, but
I'm not sure.
The gdk in my project comes from the groovy nature, can I add a source
attachment to it?

thanks
vlad

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.