Java Mailing List Archive

http://www.gg3721.com/

Home » eclipse-plugin-dev.groovy »

[groovy-eclipse-plugin-dev] How to create Stubs with the groovyc compiler

Michael Klenk

2009-01-20

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi All

I'm working at the GroovyEclipse plug-in and we try to get the joint
compilation running in eclipse and also allow the user to choose which
version of Groovy should be used.

Because we can not integrate "all" Groovy version in the plugin, the
groovy compiler must be placed outside the plugin and the user have to
set the path to groovyc.

Our problem is, that we have to use the eclipse java compiler instead of
the normal java compiler. When using the Java compiler Eclipse is
getting confused and loosing the error recovery feature of its compiler
and then the programming of java files in eclipse is unusable.

My try is now the following.

1. Creating Stubs for all Groovy Files in a temp directory.
2. Run the Java compiler from eclipse with this directory in the classpath
3. Run the groovy compiler again to create the real .class files for the
Groovy classes

My question is, is it possible to force the groovyc compiler to only
create the stubs? I found no such command line option but maybe there is
one which is not documented.

Thanks for any advice

Mike

--
Michael Klenk
Institut für Software - http://ifs.hsr.ch - +41 55 222 4625
HSR Hochschule für Technik Rapperswil
Oberseestr 10, Postfach 1475, CH-8640 Rapperswil



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

  http://xircles.codehaus.org/manage_email


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