Showing posts with label groovy. Show all posts
Showing posts with label groovy. Show all posts

Sunday, July 08, 2007

FYI - First stable version of JetGroovy

JetBrains released first stable of JetGroovy in silence. It's a good plugin for Goorvy. Also many thanks to JetBrains for nice contribution to Groovy.

You can get first stable version of JetGroovy here.

Thanks Graeme for this information.

Update: JetBrains has just updated JetGroovy. You can get the latest version at above link. But note that it requires Selena build 7038 or later. And they also blog about it. JetGroovy looks very nice :-)

One more information, seems IntelliJ IDEA 7.0 will be delayed to early 2008.

Update: JetGroovy 0.1 now is available on IntelliJ IDEA's plugin repository server and you can install it via Plugin Manager.

Thursday, June 21, 2007

JetGroovy - Groovy plugin for IntelliJ IDEA

Michal already figured out how to build JetGroovy from source. (Thanks Michal!) But if you're lazy, you can get JetGroovy here.

Installation: Download groovy.zip and extract it to IDEA_HOME/plugins, then start IDEA to fight ;-)

Note: This JetGroovy build ONLY works with IDEA 7 EAP build 7020. I'm not sure that it will work with other EAP builds (and of course it doesn't work with IDEA 6 or earlier)

If you have problem in downloading groovy.zip, please replace "us.share" in "http://us.share.geocities.com/t800t8/2007-06-21/groovy.zip" by "www". Sorry for inconvenience. (Yahoo suck!)

Update: I've just updated to IDEA build 7027 and JetGroovy doesn't work anymore. IDEA hangs while loading JetGroovy and there is no exception in log file.

Thursday, February 15, 2007

How can I remove value "2"?

In Groovy, you can remove an object from a list by using remove(int index) or remove(object obj). But if I have a list of ints, how can I remove an object by "value" rather than the index?

def list = [2, 1, 3]

list.remove(2)
assert list == [1, 3] // throws AssertionError, 'cause list = [2, 1]