Results 1 to 4 of 4

Thread: Extending Roo

  1. #1
    Join Date
    May 2005
    Location
    BEEK, The Netherlands
    Posts
    230

    Default Extending Roo

    How can we extend Roo by adding custom commands?

    I'm expirementing a little with Roo and like to add a commmand to deploy the app e.g. to the Google App Engine Cloud.

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

    Default

    For now the best way of learning how to extend Roo is to look at some of its source code. Yesterday we finished publishing the source code to a public SVN repository:

    https://anonsvn.springframework.org/...ring-roo/trunk
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  3. #3
    Join Date
    May 2005
    Location
    BEEK, The Netherlands
    Posts
    230

    Default

    OK had a look at the addon-* modules.

    How should I 'register' my own addon to a project?

    Will the commands be available from the cli shell and in STS?


    Cheers,
    Marcel

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

    Default

    At this stage all you need to do is ensure your add-on's JAR is within your Roo installation /lib or /dist directory. It will automatically be detected if you have implemented the correct interfaces (using the interfaces implemented by an existing add-on as a guide). You use the @CliCommand and @CliOption annotations to add commands to the Roo shell.

    We're going to improve all of these extensibility features in due course. For now we're mostly focusing on getting the core functionality for RAD working, documented and understood by the community. If you have any suggestions on add-on development, please feel free to raise them here or add an issue to Jira.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Posting Permissions

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