You might be able to use the ant library to spoof a basedir and run
your script --- see first comment on the link
(
http://docs.codehaus.org/display/GROOVY/Using+Ant+from+Groovy )
On Thu, May 15, 2008 at 8:28 PM, interz <
interz12@...> wrote:
>
> Yeah, but the problem is that this groovy script lives outside of the grails
> project directories.
>
>
>
> Miguel Ping wrote:
>>
>> This is an educated guess :) since install-plugin itself must be a script,
>> I'm guessing that you should find out how to invoke a script from another
>> script... shouldn't be hard...
>>
>> On Thu, May 15, 2008 at 8:59 PM, interz <
interz12@...> wrote:
>>
>>>
>>> Hi,
>>> I have several small grails projects all using some common plugins. I am
>>> trying to write a groovy script, that lives outside of a grails project
>>> which can install a common plugin to all of my grails projects.
>>>
>>> basically I need it to copy the plugin zip to the grails project dir,
>>> then
>>> invoke "grails install-plugin <zip>" from each project dir.
>>>
>>> I can figure out the copy part, but am having trouble with the plugin
>>> installation part.
>>>
>>> Any help appreicated
>>> --
>>> View this message in context:
>>>
http://www.nabble.com/Script-help%3A-how-to-invoke-grails-install-plugin-tp17261185p17261185.html>>> Sent from the grails - user mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>>
http://xircles.codehaus.org/manage_email>>>
>>>
>>>
>>
>>
>
> --
> View this message in context:
http://www.nabble.com/Script-help%3A-how-to-invoke-grails-install-plugin-tp17261185p17265353.html> Sent from the grails - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>
http://xircles.codehaus.org/manage_email>
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email