Results 1 to 3 of 3

Thread: Installing and uninstalling a addon from a script file

  1. #1
    Join Date
    Feb 2005
    Posts
    25

    Default Installing and uninstalling a addon from a script file

    Is it possible to install / uninstall a addon from a script file e.g.:

    deploy.roo:
    perform assembly
    addon uninstall old.zip
    addon install file:target/new.zip

    What happens now is that the restart performed immediately after uninstalling leaves the addon install instruction in a undefined state

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Hmm, good point.

    In early unreleased versions I did indeed provide a way of stopping the restart operation from happening. I removed it for simplicity, but now I can see it's useful.

    I have just committed in SVN revision 472 this change and created Jira issue https://jira.springsource.org/browse/ROO-428 for it. The following now works against SVN trunk, and will in Roo 1.0.0.RC4 and above:

    Code:
    perform assembly
    addon uninstall old.zip --automaticRestart false
    addon install file:target/new.zip
    Thanks for the suggestion.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  3. #3
    Join Date
    Feb 2005
    Posts
    25

    Default

    awesome, thanks a lot :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •