Results 1 to 3 of 3

Thread: Unable to change the database url using Roo shell

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Location
    Egypt
    Posts
    5

    Default Unable to change the database url using Roo shell

    when trying to change the database URL using Roo shell, Roo store a wrong database url in database.properties

    command

    Code:
    database properties set -key database.url --key jdbc:mysql://localhost/testdb
    the URL stored in database.properties
    Code:
    database.url=jdbc\:mysql\:
    I have to change it manually, I think something wrong in the shell
    Ahmed Hashim
    Egyptian JUG leader
    Sun Java Champion

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Ahmed,

    The command syntax you have shown above is actually incorrect. Have you typed it completely by hand?

    Issuing the command you have shown gives you a proper error:

    Code:
    roo> database properties set -key database.url --key jdbc:mysql://localhost/testdb
    You must specify option 'value' for this command
    There is also a dash missing in front of the first 'key' attribute. So this command should work:

    Code:
    roo> database properties set --key database.url --value jdbc:mysql://localhost/testdb
    Managed SRC_MAIN_RESOURCES/META-INF/spring/database.properties
    Tab completion in the shell should help you avoid this in future .
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

  3. #3
    Join Date
    Aug 2007
    Location
    Egypt
    Posts
    5

    Default

    I did not take "copy" from the text, so looks like some typo mistake happen.

    Can you make sure that the database.properties changed correctly?

    When I open project.roo I found this command
    Code:
    database properties set --key database.url --value jdbc:mysql:
    I think the shell command parser is doing something on the comand!
    Ahmed Hashim
    Egyptian JUG leader
    Sun Java Champion

Posting Permissions

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