rajugaadu
rajugaadu

Reputation: 714

Grails Currencies Plugin

I wanted to try Grails-Currencies plugin. I found the source on GitHub https://github.com/ricardojmendez/grails-currencies. So, I downloaded the zip from there, renamed the zip according to the description in plugin.xml and ran the command:

grails install-plugin absolute path to the zip file. ( The Grails documentation refers to an online link which is an older version. So, preferred this method. )

I got a success message that the plugin is installed. But, I don't see any of the plugin files in my current project. None of the source files are installed into my project. I then understood that plugins actually just modify the application.properties file and registers the plugin there but maintains all the plugin related files in $HOME/.grails. Now my questions are:

  1. Where do I find this $HOME/.grails folder ( am asking just out of curiosity as I didn't find any in Grails installation home folder.

  2. How do I use or access the currency plugin files or it's features in my Grails application? Do I copy the plugin files ( once you help me find them ) into my current project and then work on them? If so, I can as well copy them from the GitHub zip I downloaded. So, basically how do I go about it while making sure I leverage Grails Currency plugin and keep my existing project intact.

Thanks in advance for your help.

Upvotes: 2

Views: 204

Answers (2)

WeMakeSoftware
WeMakeSoftware

Reputation: 9162

  1. It's not GRAILS_HOME, but it's your home folder. Your home folder location is dependent on the OS you use. For example In linux it will be /home/username. On macos it will be located /Users/username.
  2. After you have installed the plugin and grails have added it to the application.properties file, you are ready to use it. Just start using plugin's features, the plugin will be picked up by grails automatically.

Upvotes: 2

James Kleeh
James Kleeh

Reputation: 12238

First of all, the way you installed the plugin is not recommended. You should simply add this to your BuildConfig.groovy under plugins:

compile ":currencies:1.3.2"

This will set up the plugin to be installed. To get the files immediately, run this:

grails refresh-dependencies

Upvotes: 2

Related Questions