Hi Troy again,

saw your mail on the Maven mailing list but better post the answer here as well :-)

----
here is are a few examples of my ejbdoclet properties adapted to your packages:


maven.xdoclet.ejbdoclet.utilobject.0 = true
maven.xdoclet.ejbdoclet.utilobject.0.Kind = physical
maven.xdoclet.ejbdoclet.utilobject.0.cacheHomes = true
maven.xdoclet.ejbdoclet.utilobject.0.includeGUID = true


maven.xdoclet.ejbdoclet.valueobject.0 = true
maven.xdoclet.ejbdoclet.valueobject.0.PackageSubstitution.0 = true
maven.xdoclet.ejbdoclet.valueobject.0.PackageSubstitution.0.packages = pms
maven.xdoclet.ejbdoclet.valueobject.0.PackageSubstitution.0.substituteWith = pms.vo


maven.xdoclet.ejbdoclet.remoteinterface.0 = true
maven.xdoclet.ejbdoclet.remoteinterface.0.PackageSubstitution.0 = true
maven.xdoclet.ejbdoclet.remoteinterface.0.PackageSubstitution.0.packages = pms
maven.xdoclet.ejbdoclet.remoteinterface.0.PackageSubstitution.0.substituteWith = pms.interfaces


If you need multiple package substitutions for a subtask you have to increment the PackageSubstition index, e.g.

maven.xdoclet.ejbdoclet.remoteinterface.0.PackageSubstitution.1 = true
maven.xdoclet.ejbdoclet.remoteinterface.0.PackageSubstitution.1.packages = pms.other
maven.xdoclet.ejbdoclet.remoteinterface.0.PackageSubstitution.1.substituteWith = pms.other.interfaces


You have to be a bit careful, sometimes I found that the actual maven plugin property names differ from the ant task attributes, so if something doesn't work you better look into the xdoclet plugin's jelly script. But I think with the 1.2.1 version things are pretty consistent now.

Hope that helps.

Leander

---

Poppe, Troy schrieb:

I have an ant script with the following ejbdoclet task being executed, and I'd
like to convert this to Maven.  I'm working on editing my project.properties, and
setting up the appropriate maven.xdoclet.ejbdoclet properties.  I'm a little
stumped at how I would do the packageSubstitution that I am currently doing.

You'll notice that there is a packageSubstitution for each subtask of ejbdoclet.
The intention is to get all the interfaces into one package, and the VOs into
another, with CMP, BMP, and Session implementations in their own packages.

I cannot for the life of me figure out what the properties would be to get each
subtask to use a different packageSubstitution.  I think at least part of my
confusion is the whole index thing with the property names.

Any help would be greatly appreciated!

Thanks.

Troy


[-- snip --]



    <ejbdoclet
           destdir="${ejbsrc.dir}"
           mergedir="${ejb.dd.dir}"
           excludedtags="@version,@author,@todo"
           addedtags="@lomboz generated"
           ejbspec="2.0"
           force="${xdoclet.force}"
           verbose="true" >


<fileset dir="../src" defaultexcludes="yes"> <patternset include="**/*Bean.java" /> </fileset>

<valueobject>
<packageSubstitution packages="pms" substituteWith="pms.vo"/>
</valueobject>
<utilobject cacheHomes="true" includeGUID="true">
</utilobject>
<remoteinterface>
<packageSubstitution packages="pms"
substituteWith="pms.interfaces"/>
</remoteinterface>
<localinterface>
<packageSubstitution packages="pms"
substituteWith="pms.interfaces"/>
</localinterface>
<homeinterface>
<packageSubstitution packages="pms"
substituteWith="pms.interfaces"/>
</homeinterface>
<localhomeinterface>
<packageSubstitution packages="pms"
substituteWith="pms.interfaces"/>
</localhomeinterface>
<entitypk/>
<entitycmp>
<packageSubstitution packages="pms" substituteWith="pms.cmp"/>
</entitycmp>
<entitybmp>
<packageSubstitution packages="pms" substituteWith="pms.bmp"/>
</entitybmp>
<session>
<packageSubstitution packages="pms"
substituteWith="pms.session"/>
</session>


<deploymentdescriptor destdir="${ejb.dd.dir}" validatexml="false"
mergedir="${ejb.dd.dir}" />


          <jboss
            version="3.0"
            unauthenticatedPrincipal="nobody"
            xmlencoding="UTF-8"
            destdir="${ejb.dd.dir}"
            validatexml="false"
            datasource="java:/jdbc/PMSDS"
            datasourcemapping="Oracle9i"
            preferredrelationmapping="relation-table"
            createTable = "false"
            removeTable = "false"/>

<orion destdir="${ejb.dd.dir}"/>
</ejbdoclet>




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user





------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to