Results 1 to 3 of 3

Thread: Custom web port in generated code

  1. #1
    Join Date
    Dec 2009
    Posts
    2

    Default Custom web port in generated code

    I've been working my way through the example at http://blog.springsource.com/2009/05/27/roo-part-2/ and have run into a bit of a snag. It's something I can work around, but it's a pain and it's something that I could see being more of an issue in actual projects.

    I have Tomcat running on port 8180 rather than the usual 8080 since I also have an OC4J container which is already using that. I have my maven.tomcat.port set in settings.xml, so it starts up no problem with mvn tomcat:run.

    However, when I use Roo to generate Selenium tests, it still puts the default port of 8080 in the generated code. Is there somewhere in Roo (or elsewhere) to customize that?

    Thanks.

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

    Default

    Give this a try:

    Code:
    selenium test --controller ~.web.RsvpController --serverUrl http://localhost:8180/
    Good luck. Hope you enjoy using Roo. :-)
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  3. #3
    Join Date
    Dec 2009
    Posts
    2

    Default

    Great, that works. Thanks!

Tags for this Thread

Posting Permissions

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