• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Making Java Groovy - Integration Issues ?

 
paul nisset
Ranch Hand
Posts: 219
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 100
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
paul nisset
Ranch Hand
Posts: 219
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic