0

I have a custom plugin which I want to package as a binary JAR. For doing so, I am executing a command as shown below:

grails package-plugin --binary

It's successfully generating the JAR file with the name of the form:

grails-plugin-mycustom-plugin-1.0.jar

I need to know, instead how can I generate a JAR file with a name of the form:

mycustom-plugin-1.0.jar

Any help in this regard is highly appreciated.

MSR
  • 173
  • 3
  • 16

1 Answers1

0

If you're using Windows, open a command prompt and run

ren grails-plugin-mycustom-plugin-1.0.jar mycustom-plugin-1.0.jar

If you're using Linux/OSX/etc. open a shell and run

mv grails-plugin-mycustom-plugin-1.0.jar mycustom-plugin-1.0.jar

If you prefer a GUI, you can right-click on the file and rename it that way.

Burt Beckwith
  • 75,342
  • 5
  • 143
  • 156
  • Thanks Burt, that works and I already did that :-) . However, I was wondering if there was a command or setting that could help me generate a JAR file with a custom name automatically, without having to follow this extra step. – MSR Apr 02 '15 at 17:15