groovy facet does not recognize builtin groovy on fedora core 10
idea #9732, java 1.6, linux fc10
Fc10 lets me install groovy 1.6 via rpms. When installed this way,
the kit is split across several directories, for example groovy and
groovysh are in /usr/local and jar files are in /usr/share/groovy/lib.
When I try to create a groovy facet, idea can't figure this out. Or can
it? I downloaded a groovy kit and pointed idea at that.
Please sign in to leave a comment.
Do you have /usr/share/groovy/bin/groovy script? If yes, then just point
to /usr/share/groovy/ when creating Groovy facet
Peter Gromov (JetBrains) wrote:
groovy 1.6 is in /usr/bin/groovy, so I guess I would use /usr in this
case when configuring the Groovy facet. That doesn't appear to work.
Idea doesn't light up the "ok" button when selecting the directory.
Mike Carifio wrote:
>> Do you have /usr/share/groovy/bin/groovy script? If yes, then just
>> point to /usr/share/groovy/ when creating Groovy facet
IDEA accepts the directories which have 'bin' subdirectory with 'groovy'
shell script inside.
Here's how the groovy kit is laid out when install via Fedora (rpm -Uvh
groovy-mumble.rpm)
$ rpm -q groovy # what version of groovy's installed
groovy-1.6.0-2.noarch
$ rpm -ql groovy # what the files and where are they placed
/etc/profile.d/groovy.csh
/etc/profile.d/groovy.sh
/usr/bin
/usr/bin/grape
/usr/bin/groovy
/usr/bin/groovyConsole
/usr/bin/groovyc
/usr/bin/groovysh
/usr/bin/java2groovy
/usr/bin/startGroovy
/usr/share
/usr/share/groovy
/usr/share/groovy/conf
/usr/share/groovy/conf/groovy-starter.conf
/usr/share/groovy/embeddable
/usr/share/groovy/embeddable/groovy-all-1.6.0.jar
/usr/share/groovy/lib
/usr/share/groovy/lib/ant-1.7.1.jar
/usr/share/groovy/lib/ant-junit-1.7.1.jar
/usr/share/groovy/lib/ant-launcher-1.7.1.jar
/usr/share/groovy/lib/antlr-2.7.7.jar
/usr/share/groovy/lib/asm-2.2.3.jar
/usr/share/groovy/lib/asm-analysis-2.2.3.jar
/usr/share/groovy/lib/asm-tree-2.2.3.jar
/usr/share/groovy/lib/asm-util-2.2.3.jar
/usr/share/groovy/lib/bsf-2.4.0.jar
/usr/share/groovy/lib/commons-cli-1.0.jar
/usr/share/groovy/lib/commons-logging-1.1.jar
/usr/share/groovy/lib/groovy-1.6.0.jar
/usr/share/groovy/lib/ivy-2.0.0.jar
/usr/share/groovy/lib/jline-0.9.94.jar
/usr/share/groovy/lib/jsp-api-2.0.jar
/usr/share/groovy/lib/junit-3.8.2.jar
/usr/share/groovy/lib/servlet-api-2.4.jar
/usr/share/groovy/lib/xstream-1.3.jar
I've downloaded a kit and expanded it in /opt/groovy, so this will work
for now. But as much as idea can "just work" over a Linux distro, that
saves me additional configuration and effort. Thanks.
Mike, /usr/share/groovy should be detected correctly since next 8.1.x
EAP, thank you.
Peter Gromov (JetBrains) wrote:
Just tried it again on fc10, with the files laid out as per a previous
post and the groovy "root" directory /usr/share/groovy. Idea 8.1 does
not detect this groovy instance, truely. Do you know if this works on
Umbuntu? I guess I'll give it a whirl.
I have a variant going. I downloaded groovy 1.6 and put it in
/opt/groovy. This works just fine and will let me continue on.
I don't defend how the distro's divide up kits, although there's some
logic for putting the groovy binaries in /usr/bin and the libs in
/usr/share/groovy/lib and so forth. I will say that I love to type in
something like "yum -y install groovy" and have it "just appear" with
all it's dependencies.
Thanks for answering my questions.
On Ubuntu, there is a usr/share/groovy/bin directory, so everything
works. And, as I've said it will work on Fedora as well in the next EAP:
http://www.jetbrains.net/confluence/display/IDEADEV/Diana+EAP