Hello,
 
In class ModelProcessor, in method "private void process( RepositoryFacade repository, 
Model[] models, Collection cartridges)"  deep copy of ModelPackages is made, which is 
not copying the processAllModelPackages attribute set. Hence when the user chooses to 
generate only a couple of packages and ignore other, it doesnt work, the generator 
generates all the packages as the "processAllModelPackages"  is always found true.
 
Check the addPackages()  method in ModelPackages. Should a defect be reported for this 
in jira.
 
Please comment.
 
Thanks,
Vikram.
 
 

        -----Original Message----- 
        From: Naik, Vikram 
        Sent: Fri 8/27/2004 9:28 AM 
        To: [EMAIL PROTECTED] 
        Cc: 
        Subject: [Andromda-user] ModelPackages: filtering of packages to process.
        
        

        Hello,
        
        We are configuring ModelPacakages to filter out the packages to be processed. 
At all the times we set the processAllModelPackages variable to false, using 
setProcessAllModelPackages() API on ModelPackages.
        
        Even though when the ModelPackages are reterieved from CodeGenerationContext 
by Cartridge to filter the packages. The value of variable processAllModelPackages is 
found to re-initialized to true, in which case all the packages are processed.
        
        We had to tweak the code in CodeGenerationContext class for this to make it 
work, before returning the modelPackages, we call the setProcessAllModelPackages() API 
again and set the processAllModelPackages attribute's value to false. Doing so the 
AndroMDA engine is able to filter the package for processing as desired.
        
        We were not able to find at which place in the code, did this variables value 
was set again to true.
        
        Please comment.
        
        Thanks,
        -Vikram.
        HSXurqVÇÒx
        PoJJp5}jÒEZ"ywJ)jw ×?H&]owgÇxËÚÖËqzØXË~zwXÏËjwg 

N¬HS^µéX¬²š'²ŠÞu¼žnZ ‰Å®K!¢‘QBZ½¡'µêé®+'auëÞŠ^®Ú(–Á·*.­úÞyÊ)ÊÁžlº 
‰Å®K!¢Ÿ5¶‡ZÊm§ÿÚvÊ,vw(›ö‰

Reply via email to