Hi,


I'm using the following properties to skip the processing for the elements of 
an referenced/imported package:



maven.andromda.modelPackage.0.name=de::mycomp::mypackage

maven.andromda.modelPackage.0.shouldProcess=false



As this works perfectly fine for the generation of the classes within this 
package it doesn't work for the following template specification:





&nbsp; &nbsp; <template

&nbsp; &nbsp; &nbsp; &nbsp; 
path="templates/entity/repeatedly/PackageDAOFactory.vsl"

&nbsp; &nbsp; &nbsp; &nbsp; outputPattern="$generatedFile"

&nbsp; &nbsp; &nbsp; &nbsp; outlet="backend-java-repeatedly"

&nbsp; &nbsp; &nbsp; &nbsp; overwrite="true"

&nbsp; &nbsp; &nbsp; &nbsp; required="false"

&nbsp; &nbsp; &nbsp; &nbsp; outputOnEmptyElements="false">

&nbsp; &nbsp; &nbsp; &nbsp; <modelElements variable="package">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <modelElement>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <type 
name="de.mycomp.metafacades.PackageFacade">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="createDAOFactory"/>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </type>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </modelElement>

&nbsp; &nbsp; &nbsp; &nbsp; </modelElements>

&nbsp; &nbsp; </template> 



The PackageDAOFactory.vsl creates a single class "DAOFactory" for all packages 
that contain at least one entity (this is checked in the method 
"isCreateDAOFactory()"). The metafacade class 
"de.mycomp.metafacades.PackageFacade" extends the AndroMDA PackageFacade.



However, this DAOFactory class gets also generated for my package 
de::mycomp::mypackage that shouldn't be processed.



Is it possible to get a list of all packages that shouldn't be processed that I 
could use in my "isCreateDAOFactory" method?



Thanks in advance,

Joern
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1325#1325
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to