This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Groovy and the fly likes Plugin/Gant script consolidation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Languages » Groovy
Bookmark "Plugin/Gant script consolidation" Watch "Plugin/Gant script consolidation" New topic

Plugin/Gant script consolidation

Oliver Hoch

Joined: Jun 11, 2003
Posts: 2
Hi Dave,
in a plugin I'd like to extract constants (e.g. folder and file names) into a (groovy) class for reuse in install, uninstall and other Gant scripts.
How can I use such a class in my gant scripts?
Dave Klein
Ranch Hand

Joined: Aug 29, 2007
Posts: 77
Hi Oliver,

I haven't tried this myself, but you should be able to just put the Groovy file in your plugin's src/groovy directory and refer to it in the scripts. Have you tried that and run into problems?

I agree. Here's the link:
subject: Plugin/Gant script consolidation
It's not a secret anymore!