• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Packaging and Documentation

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As I am thinking about using Groovy in an open-source project, I am curious about two things:

a) Can Groovy scripts be packaged up in a JAR and be easily used as a third party library?

b) Can Javadoc comments be included in and subsequently generated from Groovy scripts?

Thanks,

Ed
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can put the Groovy source in the jar and the Groovy classloader will compile them "on the fly". Alternativly you can use grovyc to compile them to class files and put the class files in the jar file.

We do not have a gerovydoc implementation at the moment - it's on the todo list
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On a project I work on, we use Groovy for a calculation component. We compile the Groovy using Ant and package up the class files in a jar. The jar is wrapped in an EJB. When compiled into .class files, Groovy integrates with Java seemlessly.
reply
    Bookmark Topic Watch Topic
  • New Topic