aspose file tools*
The moose likes Groovy and the fly likes Making Java Groovy - Integration Issues ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Making Java Groovy - Integration Issues ?" Watch "Making Java Groovy - Integration Issues ?" New topic
Author

Making Java Groovy - Integration Issues ?

paul nisset
Ranch Hand

Joined: May 13, 2009
Posts: 177

Groovy has been around a while but I still don't know how it integrates with java .

I understand that it uses a jvm to run.
I'm still a little confused as to what Groovy actually is. Is it a compiler ?
Can it be integrated into an existing java project and then compiled using the the java (JDK) compiler or do you have to create a new project in Groovy and import your previous Java project/files ?
For instance, in another post you mentioned that you can create your tests in Groovy for an existing Java project.
Unless I could integrate it into my IDE where my java project is,it would be simpler to just use JUnit .

Is there an eclipse plug in for it?

Thanks,
Paul

Kenneth A. Kousen
gunslinger & author
Ranch Hand

Joined: Sep 18, 2002
Posts: 89
    
    5
Hi Paul,

Groovy is a separate language with its own compiler. The compiler generates bytecodes that run on the JVM. If you are an Eclipse user, there is a Groovy plugin (just google for it) that you can add. Then, when you create a Groovy project, you can add both Groovy and Java files to the project and everything will compile together. If you have an existing Java project, you can convert it to a Groovy project in your IDE and add tests written in Groovy, whether they are JUnit or something else, like Spock.

Ken


Kenneth A. Kousen, Ph.D. (assorted certs), President, Kousen IT, Inc.
Author of Making Java Groovy - http://www.kousenit.com
paul nisset
Ranch Hand

Joined: May 13, 2009
Posts: 177
Thanks Ken.
That is useful to know.
I should check out the plug in.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Making Java Groovy - Integration Issues ?