Discussion:
Eclipse / Groovy
Ondřej Čada
2012-01-24 12:26:12 UTC
Permalink
Hello there,

since I've more or less finished the project in which I've used lately ERMail only and since there were rather problems with that (though it does work), I've decided to try to embrace complete WONDER (and, to this goal, sadly leave Xcode and go Eclipse). Also, as an added benefit, I'd like to use Groovy along with (and, hopefully, increasingly instead of) the Java thing.

I've installed the stuff using the tutorials at the wocommunity wiki, and am reading through the other docs, but there are a couple questions I'd like to ask you more experienced people out there:

1. Eclipse: for someone who spends most time in Xcode, the thing's GUI's a proper disaster :( Did someone succeed to make it at least a bit Mac OS X'y? If so, would you share the tricks?

So far about all the customization I was able to find howto are some changed hotkeys (e.g., (shift)-cmd-g for find prev/next), but I've found so far no way to make it heed the find pasteboard or use cmd-e properly, I haven't found a way to open a source editor in a separate window (darn, even Xcode 4 can do that), I haven't found a way to alt-arrows go by words and ctrl-arrows by sub-words, etc etc etc... And for crying out loud, is there a way to switch off the disabling of the main window whilst something like Preferences is open?!? :-O It's nice to feel like eighties were again, but it rather hinders the productivity, esp. in cases one needs to change settings, try to build, and repeat that umpteen times :(

2. Groovy: anybody uses the thing? I've bumped into some problems whose solutions so far I can't see:

- I've installed groovy to Eclipse, and that essentially works: I can e.g., add a groovy class to a WONDER project, instantiate it, use its methods etc., and it works all right. At this level though there's one weird glitch: an edited .groovy source does NOT get re-build automatically; the only way I found to incorporate changes is to clean and re-build a complete project?!?

- so as one can use groovy for components, and -- far as I understand -- also for better groovy container integration to the WO environment (and for development rapid turnaround I could do without myself) the Quinton's WOGroovy thing should help. Again, anyone uses the thing? I've downloaded it from http://wogroovy.googlecode.com/ SVN and installed; there were lot of problems caused by wrong (presumably obsolete?) ERX* imports like er.extensions.ERXArrayUtilities instead of er.extensions.foundation.ERXArrayUtilities etc. which I've fixed, and one problem which I have absolutely no idea how to fix: compiling DefaultGroovyMethodsAdditions.java, the very first line -- "package org.codehaus.groovy.runtime;" -- keeps generating an error "The type er.extensions.ERXGenericRecord cannot be resolved. It is indirectly referenced from required .class files". Can anybody help?

Thanks a big lot,
---
Ondra Čada
OCSoftware: ***@ocs.cz http://www.ocs.cz
private ***@ocs.cz http://www.ocs.cz/oc
Ondřej Čada
2012-01-24 13:57:49 UTC
Permalink
Post by Ondřej Čada
but there are a couple questions I'd like to ask you more experienced people out there
Oh, one more thing: from the Your+First+Deployment wiki page seems to build a project -- be it a framework or an application -- the "WOLips Ant Tools -> Install" service should be sufficient.

Nevertheless, for a framework project (I've tried WOJars and WOExtensions) it fails reporting

===
Buildfile: /WODeveloper/WonderSource/Frameworks/Core/ERExtensions/build.xml
install:
ERExtensions.all:
global.environment:
global.properties:
global.framework.install:

BUILD FAILED
/WODeveloper/WonderSource/Frameworks/Core/ERExtensions/build.xml:17: The following error occurred while executing this line:
/WODeveloper/WonderSource/Build/build/build.xml:191: The following error occurred while executing this line:
/WODeveloper/WonderSource/Build/build/generic.xml:526: /Users/ocs/Roots/ERExtensions.framework does not exist.
===

What on earth is "/Users/ocs/Roots"? I did not set that myself anywhere. And straw-catching, I've tried to create that folder world-writeable, which did not help the slightest bit.

If I create the framework folder manually (which I don't think I should!), something else's missing:

===
/WODeveloper/WonderSource/Build/build/generic.xml:529: /WODeveloper/WonderSource/Frameworks/Core/ERExtensions/Libraries does not exist.
===

Thanks for any insight,
---
Ondra Čada
OCSoftware: ***@ocs.cz http://www.ocs.cz
private ***@ocs.cz http://www.ocs.cz/oc
Q
2012-01-25 03:27:17 UTC
Permalink
That WOGroovy project is basically dead. A lot has changed since I last touched it, and I'm pretty sure it would need to be rewritten from scratch by now to work with recent versions of groovy anyway.
Post by Ondřej Čada
Hello there,
...
Post by Ondřej Čada
- I've installed groovy to Eclipse, and that essentially works: I can e.g., add a groovy class to a WONDER project, instantiate it, use its methods etc., and it works all right. At this level though there's one weird glitch: an edited .groovy source does NOT get re-build automatically; the only way I found to incorporate changes is to clean and re-build a complete project?!?
- so as one can use groovy for components, and -- far as I understand -- also for better groovy container integration to the WO environment (and for development rapid turnaround I could do without myself) the Quinton's WOGroovy thing should help. Again, anyone uses the thing? I've downloaded it from http://wogroovy.googlecode.com/ SVN and installed; there were lot of problems caused by wrong (presumably obsolete?) ERX* imports like er.extensions.ERXArrayUtilities instead of er.extensions.foundation.ERXArrayUtilities etc. which I've fixed, and one problem which I have absolutely no idea how to fix: compiling DefaultGroovyMethodsAdditions.java, the very first line -- "package org.codehaus.groovy.runtime;" -- keeps generating an error "The type er.extensions.ERXGenericRecord cannot be resolved. It is indirectly referenced from required .class files". Can anybody help?
Thanks a big lot,
---
Ondra Čada
_______________________________________________
WebObjects-dev mailing list
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
Ondřej Čada
2012-01-25 12:11:06 UTC
Permalink
Quinton,
That WOGroovy project is basically dead. ...
So you stopped using Groovy yourself? Did you find it flawed?

Myself, I'm just about to shift my WO development from Java to Groovy as much as possible, and if there are some pitfalls along the way, I'd be quite grateful if you could point out them to me before I find them myself the hard way :)

Thanks a big lot,
---
Ondra Čada
OCSoftware: ***@ocs.cz http://www.ocs.cz
private ***@ocs.cz http://www.ocs.cz/oc
Q
2012-01-26 02:21:48 UTC
Permalink
Post by Ondřej Čada
Quinton,
That WOGroovy project is basically dead. ...
So you stopped using Groovy yourself? Did you find it flawed?
It was an experiment. I looked at scala and jruby around the same time too. I ended up using plain old java in the end because the tools were (are?) far more advanced and useful when you do.
Post by Ondřej Čada
Myself, I'm just about to shift my WO development from Java to Groovy as much as possible, and if there are some pitfalls along the way, I'd be quite grateful if you could point out them to me before I find them myself the hard way :)
Thanks a big lot,
---
Ondra Čada
Loading...