« Return to Thread: Script help: how to invoke grails install-plugin

Re: Script help: how to invoke grails install-plugin

by interz :: Rate this Message:

Reply to Author | View in Thread

we are creating a suite of plugins all that share a common base plugin. When that plugin is updated we want to go to one place and update all projects that require it.

Peter Ledbrook-2 wrote:
2008/5/16 Sergey Nebolsin <nebolsin@prophotos.ru>:
> This may work (untested though):
> "grails install-plugin your-plugin.zip".execute([], "your grails app path"
> as File)
> http://groovy.codehaus.org/groovy-jdk/java/lang/String.html#execute(java.util.List%20envp,%20java.io.File%20dir)
> Cheers

Another option is to look a the "startGrails" script in
$GRAILS_HOME/bin and use it as a reference for invoking the
GrailsScriptRunner class. It this script runner that you really need
to use to execute the InstallPlugin script.

BTW, why are you copying the plugin zip? InstallPlugin will copy it
into the "plugins" directory of the project anyway.

Cheers,

Peter

--
Software Engineer
G2One, Inc.
http://www.g2one.com/

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

 « Return to Thread: Script help: how to invoke grails install-plugin

LightInTheBox - Buy quality products at wholesale price