facebook

Wrong tags generated for XDoclet package substitution

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #225714 Reply

    fmfaulkner
    Member

    The generated build-ejbgen.xml file should have the package substitution nested within the appropriate tag, not an attribute of the tag. Plus the spelling
    has an ‘s’ on packageSubstitution which is also incorrect.

    Here is the expected output for a value object:

    <valueobject>
    <packageSubstitution packages=”ejb” substituteWith=”value”/>
    </valueobject>

    #225722

    Riyad Kalla
    Member

    You mentioned this in another thread and I fired it off for your XDoclet dev to have a look to see what is going on.

    #225746

    Greg
    Member

    To enable packageSubstitution on your value object use the following steps:

    1) Go into the XDoclet configuration and selection Standard EJB.
    2) Under the ejbdoclet, select valueobject subtask. Remove anything that is set as the packageSubstitutions attribute.
    3) Right-click the valueobject subtask and select “Add”
    4) Choose PackageSubstitution in the dialog
    5) In the new nested-subtask called PackageSubstitution set the packages=”ejb” and substituteWith=”value”.
    6) Hit ok and re-run XDoclet

    The build file will be correct and you should see your value object with the correct substitution get generated. Hope this helps.

    Also, read my last post in this related thread.
    https://www.genuitec.com/forums/topic/xdoclet-dataobjectsubtask-problem/#post-225747

    #225807

    fmfaulkner
    Member

    Thanks. Works as advertised. I missed reading about being able to right-click on the subtask.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Wrong tags generated for XDoclet package substitution

You must be logged in to post in the forum log in