This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Plugin/Gant script consolidation

 
Oliver Hoch
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Oliver
 
Dave Klein
author
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic