Results 1 to 3 of 3

Thread: Advanced add-on custom data in ITD

  1. #1
    Join Date
    Jun 2012
    Posts
    10

    Default Advanced add-on custom data in ITD

    Hello,

    I am creating an advanced Spring Roo add-on and I need to place inside the created ITD something like:

    Code:
    declare precedence: X, Y;
    I have tried to append custom data, using <code>append</code> and something like:

    Code:
    CustomData customData = ((CustomDataBuilder) new CustomDataBuilder().put("name", "declare precedence: X, Y;")).build();
    but I get a NullPointerException.

    Can anybody help?

    Kind regards,
    Radu

  2. #2
    Join Date
    Jan 2010
    Posts
    22

    Default

    Hello Radu,

    We had a similar problem in gvNIX.

    The best solution than we found was create the ITD directly from a text template included in the add-on. The fastest way is use regular expression to replace specific data before return the ITD content.

    Regards,
    Chema.
    Jose Manuel Vivó Arnal ( Chema ) @jmvivo
    DiSiD Technologies S.L. (http://www.disid.com)

  3. #3
    Join Date
    Jun 2012
    Posts
    10

    Default

    Hi Chema,

    Thanks for the tip.
    I was already using such a template, but for different things on a basic add-on... But you're right, it should also work with the ITD.

    I am still wondering however if there isn't another possibility (like using the roo-provided methods).

    On a different note, great job with the gvNIX add-on! I've checked it out and it is quite impressive I must say.

    Best,
    Radu

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
  •