Results 1 to 7 of 7

Thread: Simple customization for multiple apps

  1. #1
    Join Date
    Sep 2010
    Posts
    13

    Default Simple customization for multiple apps

    I'm new to Roo, but I'm looking to make modifications to the stylesheets that could then be applied to ALL apps generated by Roo. What's the easiest way to accomplish that task? Can the Roo artifacts be copied and modified?

    Thanks.

  2. #2
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    66

    Default Modify CSS and Image files

    I was attempting this at one point. There is an addon jar in the bundle directory that contains the images and css files:

    org.springframework.roo.addon.web.mvc.jsp-1.1.0.M3.jar.

    No luck modifying the JAR as yet.

    Maybe there is a better way to do this...

  3. #3
    Join Date
    Sep 2010
    Posts
    13

    Default modify addon JAR

    I tried to modify that JAR with the modified components but the stock artifacts continue to be packaged with the app when its generated.

    Anyone know the trick to update these components?

  4. #4
    Join Date
    Sep 2010
    Posts
    13

    Default

    Does anyone have thoughts on how to do this customization?

    Thanks.

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

    Default

    As mentioned above, the CSS style sheets are currently packaged in an addon. I think the easiest way to offer customizations like your own style sheets is to create a simple addon yourself. Your addon would simply replace the style sheet installed by the default scaffolding.

    With Roo 1.1.0.M3 we offer the 'addon create' command which gets that work 95% done for you. With the next release it will be even easier (see https://jira.springsource.org/browse/ROO-1028 and https://jira.springsource.org/browse/ROO-1256) but these features still need proper documentation.
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

  6. #6
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    66

    Default

    I've identified a number of static files that would be open to change: favicon.ico, banner-graphic.png, springsource-logo.png and the two CSS style sheets. I'd like to try creating a simple addon as Stefan suggested.

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

    Default

    Good to hear that .
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

Posting Permissions

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